onRemoved method
Called after the exit animation completes and the page is fully removed. Override for cleanup that should happen after the page is off screen.
Implementation
@override
void onRemoved() {
if (_hideListenerAttached) {
currentIndex.removeListener(_syncHideSlot);
_hideListenerAttached = false;
}
_releaseHideSlot();
super.onRemoved();
}