diff --git a/lib/flutter_command.dart b/lib/flutter_command.dart index 1a46b7a..2f4ff4d 100644 --- a/lib/flutter_command.dart +++ b/lib/flutter_command.dart @@ -204,7 +204,7 @@ abstract class Command extends CustomValueNotifier { /// isExecuting which also blocks execution if true _canExecute = (_restriction == null) ? _isExecuting.map((val) => !val) as ValueNotifier - : _restriction!.combineLatest( + : _restriction.combineLatest( _isExecuting, (restriction, isExecuting) => !restriction && !isExecuting, ) as ValueNotifier;