removeHandler<T> method

  1. @override
void removeHandler<T>({
  1. List<String>? paths,
  2. String? separator,
})
override

Removes a handler from a specific topic.

Implementation

@override
void removeHandler<T>({List<String>? paths, String? separator}) {
  _checkNotDisposed();
  final topic = Topic.create<T>(
      paths: paths, separator: separator ?? defaultTopicPathSeparator);
  _requestHandlers.remove(topic);
  final node = _nodeByTopic(topic);
  if (node != null) {
    removeNode(topic, node);
  }
}