eventFilter property

bool Function(Bloc bloc, Object? event)? eventFilter
final

A filter function for events.

If provided, this function is called for each event. If it returns true, the event is logged; otherwise, it is skipped.

Implementation

final bool Function(Bloc<dynamic, dynamic> bloc, Object? event)? eventFilter;