off method

void off(
  1. String event,
  2. Function callback
)

Remove an event listener

Implementation

void off(String event, Function callback) {
  final handlers = _eventHandlers[event];
  if (handlers != null) {
    handlers.remove(callback);
  }
}