removeTopic<T> method
Removes the node of a topic and forgets its value, even on a model bus.
The model-bus rule and a KeepAliveNode pin are ignored on purpose: this
is the explicit "forget this topic" operation. A transport node cancels
its broker subscription on EventNode.dispose. Active listeners receive
done; a registered handler stays and a model bus creates the node again
on the next event.
Implementation
@override
bool removeTopic<T>({List<String>? paths, String? separator}) {
_checkNotDisposed();
final topic = Topic.create<T>(
paths: paths, separator: separator ?? defaultTopicPathSeparator);
if (TopicPattern.isPattern(topic)) {
TopicPattern.validate(topic);
}
return _removeTopicLocally(topic);
}