dispose method
void
dispose()
Removes this controller from Flutter's binding.
Implementation
void dispose() {
if (!_isStarted) return;
WidgetsBinding.instance.removeObserver(this);
_isStarted = false;
}
Removes this controller from Flutter's binding.
void dispose() {
if (!_isStarted) return;
WidgetsBinding.instance.removeObserver(this);
_isStarted = false;
}