diff --git a/lib/src/redux_action.dart b/lib/src/redux_action.dart index 4eb9028..94e9e6b 100644 --- a/lib/src/redux_action.dart +++ b/lib/src/redux_action.dart @@ -431,10 +431,10 @@ class AbortDispatchException implements Exception { /// the given [updateFunction] to the current state. class UpdateStateAction extends ReduxAction { // - final St Function(St) updateFunction; + final St? Function(St) updateFunction; UpdateStateAction(this.updateFunction); @override - St reduce() => updateFunction(state); + St? reduce() => updateFunction(state); }