onEvent method

void onEvent(
  1. Event event
)

Called whenever an event is added to the bloc. A great spot to add logging/analytics at the individual bloc level.

Implementation

void onEvent(Event event) => null;