removeListener method
- ClientListener listener
Removes a listener from the LightstreamerClient instance so that it will not receive events anymore.
Lifecycle a listener can be removed at any time.
-
listener
The listener to be removed. -
See addListener
Implementation
void removeListener(ClientListener listener) {
var found = _listeners.remove(listener);
if (found) {
scheduleMicrotask(() {
listener.onListenEnd();
});
}
}