hasListener method

bool hasListener(
  1. Type listener
)

Implementation

bool hasListener(Type listener) =>
    _listeners.any((element) => element.runtimeType == listener);