unsubscribe static method
Implementation
static void unsubscribe(SubscriptionToken token) {
final inst = _shared;
if (inst == null) return;
final list = inst._eventHandlers[token.eventName];
if (list == null) return;
list.remove(token.handler);
if (list.isEmpty) {
inst._eventHandlers.remove(token.eventName);
}
}