diff --git a/lib/flutter_command.dart b/lib/flutter_command.dart index 50fc6f3..7164cd5 100644 --- a/lib/flutter_command.dart +++ b/lib/flutter_command.dart @@ -79,7 +79,7 @@ class CommandResult { /// This sort of objects are emitted on the `.errors` ValueListenable /// of the Command class CommandError { - final Object? error; + final Object error; final TParam? paramData; String? get commandName => command?.name ?? 'Command Property not set'; final Command? command; @@ -98,7 +98,7 @@ class CommandError { this.command, this.errorReaction, this.paramData, - this.error, + required this.error, this.stackTrace, this.originalError, }); @@ -177,7 +177,7 @@ abstract class Command extends CustomValueNotifier { .listen((x, _) { final originalError = CommandError( paramData: x.paramData, - error: x.error, + error: x.error!, command: this, errorReaction: x.errorReaction!, stackTrace: x.stackTrace,