dispose method
Discards any active listeners. After this is called the object will not be in a usable state.
Implementation
void dispose() {
_listeners?.forEach(removeListener);
_listeners = null;
}
Discards any active listeners. After this is called the object will not be in a usable state.
void dispose() {
_listeners?.forEach(removeListener);
_listeners = null;
}