From abf2385cdea99475692bf4b947761ccbdfabffc1 Mon Sep 17 00:00:00 2001 From: Thomas Burkhart Date: Wed, 27 Nov 2024 12:47:36 +0100 Subject: [PATCH] analyzer fix --- lib/flutter_command.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;