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




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


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
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.


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