addEventFilter method Null safety

void addEventFilter(
  1. MailEventFilter filter
)

Adds the specified mail event filter.

You can use a filter to surpress matching MailEvent. Compare eventBus.

Implementation

void addEventFilter(MailEventFilter filter) {
  _eventFilters ??= <MailEventFilter>[];
  _eventFilters!.add(filter);
}