removeListener method

void removeListener(
  1. void listener(
    1. LogRecord record
    )
)

Stops calling listener, added with addListener; does nothing when it is not a listener. A listener removed while a record is passed to the listeners still gets that record.

Implementation

void removeListener(void Function(LogRecord record) listener) =>
    _listeners.remove(listener);