add method

  1. @override
void add(
  1. Event event

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 overridden at the bloc as well as the BlocDelegate level.


void add(Event event) {
  try {
  } on dynamic catch (error, stackTrace) {
    onError(error, stackTrace);