addListener method
Adds a callback function to the list on active callbacks
These listeners can be used to cause side effects to bloc events
Implementation
void addListener(BlocListener callback) {
_eventListeners.add(callback);
}
Adds a callback function to the list on active callbacks
These listeners can be used to cause side effects to bloc events
void addListener(BlocListener callback) {
_eventListeners.add(callback);
}