stopObserving method
void
stopObserving()
Stop observing lifecycle changes.
Rarely needed, but you can stop listening if you no longer need callbacks.
Implementation
void stopObserving() {
WidgetsBinding.instance.removeObserver(this);
}