addListener method Null safety
- VoidCallback listener
Register a closure to be called when the object notifies its listeners.
Implementation
void addListener(VoidCallback listener);
Register a closure to be called when the object notifies its listeners.
void addListener(VoidCallback listener);