unsubscribe method

void unsubscribe(
  1. Object eventName, [
  2. EventCallback? f
])

Implementation

void unsubscribe(Object eventName, [EventCallback? f]) {
  var callbackList = _emap[eventName];
  if (callbackList == null) return;
  if (f == null) {
    callbackList.clear();
  } else {
    callbackList.remove(f);
  }
}