Skip to content

Commit

Permalink
Update redux_action.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
marcglasberg committed Apr 1, 2024
1 parent cda2d01 commit 2c4c2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/redux_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ class AbortDispatchException implements Exception {
/// the given [updateFunction] to the current state.
class UpdateStateAction<St> extends ReduxAction<St> {
//
final St Function(St) updateFunction;
final St? Function(St) updateFunction;

UpdateStateAction(this.updateFunction);

@override
St reduce() => updateFunction(state);
St? reduce() => updateFunction(state);
}

0 comments on commit 2c4c2d8

Please sign in to comment.