addLifecycleObserver method
void
addLifecycleObserver(
- LifecycleObserver observer, {
- LifecycleState? startWith,
- bool fullCycle = true,
inherited
添加一个观测者
Implementation
@override
void addLifecycleObserver(LifecycleObserver observer,
{LifecycleState? startWith, bool fullCycle = true}) {
_lifecycleRegistry.addLifecycleObserver(observer,
startWith: startWith, fullCycle: fullCycle);
}