off method

void off(
  1. Events event,
  2. Function handler
)

Removes a handler previously passed to on.

Implementation

void off(Events event, Function handler) {
  _appHandlers.removeWhere((h) => h.key == event && h.value == handler);
  _eventEmitter.remove(event.parseToString(), handler);
}