BlocMonitor<T> class

Callbacks which are sent by the blocs, can be used for debugging or side effects

T is the type of state value blocName is the name of bloc, which sent the event

Constructors

BlocMonitor()

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
onBroadcast(String blocName, T state, {String event}) → void
Called when the bloc broadcasts a new state to the connected builders
onBusy(String blocName, {String event}) → void
Called whenever the bloc is set to busy
onError(String blocName, StateError error, {String event}) → void
Called whenever the bloc encounters an error
onEvent(String blocName, T currentState, T update, {String event}) → void
Called when bloc calls the setState method
onInit(String blocName, T initState) → void
Called when the bloc is being initialized [...]
onStreamDispose(String blocName) → void
Called when the internal stream of the bloc is being disposed (because it has no more listeners)
onStreamListener(String blocName) → void
Called when a builder starts listening to this bloc's broadcasts
toString() String
Returns a string representation of this object.
inherited

Operators

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