OnDispatchFailed<TState> typedef

OnDispatchFailed<TState> = Event Function(Context<TState> context, Event event, TState initialState, dynamic error, StackTrace stackTrace)

An error occured while dispatching the event.

The initialState is the state before the execution.

Implementation

typedef Event OnDispatchFailed<TState>(
  Context<TState> context,
  Event event,
  TState initialState,
  dynamic error,
  StackTrace stackTrace,
);