SimpleBlocDelegate class

Inheritance

Constructors

SimpleBlocDelegate()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onError(Bloc bloc, Object error, StackTrace stackTrace) → void
Called whenever an error is thrown in any bloc with the given bloc, error, and stackTrace. The stackTrace argument may be null if the state stream received an error without a stackTrace. A great spot to add universal error handling.
@mustCallSuper, inherited
onEvent(Bloc bloc, Object event) → void
Called whenever an event is added to any bloc with the given bloc and event. A great spot to add universal logging/analytics.
@mustCallSuper, inherited
onTransition(Bloc bloc, Transition transition) → void
Called whenever a transition occurs in any bloc with the given bloc and transition. A transition occurs when a new event is added and mapEventToState executed. onTransition is called before a bloc's state has been updated. A great spot to add universal logging/analytics.
override
toString() String
A string representation of this object. [...]
inherited

Operators

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