off method
Removes a listener for a specific event.
Implementation
void off(String event, Function(dynamic) listener) {
_listeners[event]?.remove(listener);
if (_listeners[event]?.isEmpty ?? false) {
_listeners.remove(event);
}
}
Removes a listener for a specific event.
void off(String event, Function(dynamic) listener) {
_listeners[event]?.remove(listener);
if (_listeners[event]?.isEmpty ?? false) {
_listeners.remove(event);
}
}