reduce method

  1. @override
ActionState reduce()

The method that returns the new state.

Implementation

@override
ActionState reduce() {
  final parsedActions = parseActionMap(
    raw: actions,
    actionPath: '',
  );
  return state.copyWith(actions: parsedActions);
}