From 7f5e0e32af0ef2130c3449945513417a3e8ca1f2 Mon Sep 17 00:00:00 2001 From: Thomas Burkhart Date: Thu, 14 Nov 2024 15:37:07 +0100 Subject: [PATCH] made CommandError.error required non nullable --- lib/flutter_command.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,