countOnce method

int countOnce(
  1. String topic
)

Get the number of one-time subscriptions for a topic in the event system.

Implementation

int countOnce(String topic) {
  return _cacheOnce[topic]?.length ?? 0;
}