addObserverWithCloser method
void
addObserverWithCloser(
- HasCloser hasCloser,
- WidgetsBindingObserver observer, {
- void onClose()?,
Implementation
void addObserverWithCloser(
HasCloser hasCloser, WidgetsBindingObserver observer,
{void Function()? onClose}) {
addObserver(observer);
hasCloser.closer
.addSubClosable(ClosableWidgetsBinding(this, observer, onClose));
}