removeEventFilter method Null safety

void removeEventFilter(
  1. MailEventFilter filter
)

Removes the specified mail event filter.

Compare addEventFilter().

Implementation

void removeEventFilter(MailEventFilter filter) {
  if (_eventFilters != null) {
    _eventFilters!.remove(filter);
    if (_eventFilters!.isEmpty) {
      _eventFilters = null;
    }
  }
}