addListener method Null safety
- VoidCallback listener
override
Register a closure to be called when the object notifies its listeners.
Implementation
@override
void addListener(VoidCallback listener) {
assert(!_disposedByOwner);
_overlayStateMounted.addListener(listener);
}