removeHandler<T> method

  1. @override
void removeHandler<T>({
  1. String? path,
  2. String? target,
})
override

Removes a handler from a specific topic. Disposes of the EventNode if it exists.

Implementation

@override
void removeHandler<T>({String? path, String? target}) {
  var t = Topic.create<T>(path: path, target: target);
  var node = _eventsMap[t];
  if (node != null) {
    node.dispose();
    _eventsMap.remove(t);
  }
}