removeSubscriber method

  1. @override
void removeSubscriber(
  1. String type
)
override

Removes a subscriber for the event type

Implementation

@override
void removeSubscriber(String type) {
  final count = _subscribers[type] ?? 0;
  if (count > 0) {
    _subscribers[type] = count - 1;
  }
}