off method

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

Implementation

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