add method
- @override
inherited
Notifies the bloc
of a new event
which triggers mapEventToState.
If close has already been called, any subsequent calls to add will
be delegated to the onError method which can be overriden at the bloc
as well as the BlocDelegate
level.
Implementation
@override
void add(Event event) {
try {
BlocSupervisor.delegate.onEvent(this, event);
onEvent(event);
_eventSubject.sink.add(event);
} on Object catch (error) {
_handleError(error);
}
}