onEvent method

  1. @protected
  2. @mustCallSuper
void onEvent(
  1. Bloc bloc,
  2. Object? event
)

Called whenever an event is added to any bloc with the given bloc and event.

Implementation

@protected
@mustCallSuper
void onEvent(Bloc<dynamic, dynamic> bloc, Object? event) {}