Null safety
This commit is contained in:
parent
acc11c91e1
commit
b90cf58906
|
|
@ -90,11 +90,11 @@ class _DesktopSessionTimeoutState extends State<DesktopSessionTimeout> {
|
|||
onPressed: () {
|
||||
final store = StoreProvider.of<AppState>(context);
|
||||
final completer = Completer<Null>();
|
||||
completer.future.then((value) {
|
||||
completer.future.then(() {
|
||||
setState(() {
|
||||
_isWarned = false;
|
||||
});
|
||||
} as FutureOr<_> Function(Null));
|
||||
} as FutureOr<Null> Function(Null));
|
||||
store.dispatch(RefreshData(completer: completer));
|
||||
},
|
||||
child: Text(
|
||||
|
|
|
|||
|
|
@ -88,9 +88,9 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
|
|||
webClient.get(url, credentials.token).then((dynamic response) {
|
||||
store.dispatch(RefreshData(
|
||||
completer: Completer<Null>()
|
||||
..future.then((value) {
|
||||
..future.then<Null>(() {
|
||||
runCheck();
|
||||
} as FutureOr<_> Function(Null))));
|
||||
} as FutureOr<Null> Function(Null))));
|
||||
}).catchError((dynamic error) {
|
||||
showErrorDialog(message: error);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -122,8 +122,9 @@ class MultiSelectListState extends State<MultiSelectList> {
|
|||
columnTitle.isEmpty ? lookupOption(option) : columnTitle;
|
||||
});
|
||||
final keys = options.keys.toList();
|
||||
keys.sort((a, b) =>
|
||||
lookupOption(a!)!.toLowerCase().compareTo(lookupOption(b!)!.toLowerCase()));
|
||||
keys.sort((a, b) => lookupOption(a!)!
|
||||
.toLowerCase()
|
||||
.compareTo(lookupOption(b!)!.toLowerCase()));
|
||||
|
||||
final column = Container(
|
||||
width: isMobile(context) ? double.maxFinite : 400,
|
||||
|
|
|
|||
Loading…
Reference in New Issue