listeners method

List<_KuzzleListener>? listeners(
  1. String eventName
)

Implementation

List<_KuzzleListener>? listeners(String eventName) {
  assert(eventName != null);
  assert(eventName.isNotEmpty);

  if (!_events.containsKey(eventName)) {
    return <_KuzzleListener>[];
  }

  return _events[eventName];
}