onEvent method Null safety

  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 bloc, Object? event) {}