hasClients property

bool get hasClients

Whether any Listener objects have attached themselves to the GammaController using the attachListener method.

If this is false, then members that interact with the GammaControllerStatus, must not be called.

Implementation

bool get hasClients => _listeners.isNotEmpty;