off method

void off(
  1. dynamic eventName, [
  2. EventCallback? f
])

Implementation

void off(eventName, [EventCallback? f]) {
  var list = _emap[eventName];
  if (eventName == null || list == null) return;
  if (f == null) {
    _emap[eventName] = [] ;
  } else {
    list.remove(f);
  }
}