getSubscribers method

int getSubscribers(
  1. Type type
)

Returns the number of subscribers for a given type

Implementation

int getSubscribers(Type type) {
  return _subscribers[type.toString()] ?? 0;
}