ErrorHandler<TState> class

This middleware catches all exceptions from middlewares below it and dispatches a new event from its onFailed callback if so.

Inheritance

Constructors

ErrorHandler(OnDispatchFailed<TState> onFailed)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onFailed OnDispatchFailed<TState>
Called whenever an error occurs while dispatching an event to dispatch a new event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Context<TState> context, Event event, NextMiddleware<TState> next) Stream<TState>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited