nextState method

  1. @override
Future<void> nextState(
  1. CommandContext<State, System> context,
  2. State state
)
override

Updates the state to the next state.

Implementation

@override
Future<void> nextState(
  CommandContext<State, System> context,
  State state,
) async {
  _nextState(state, context.currentValue as T);
}