onDetach method
Called during pop before the future is completed. Override for cleanup that must happen before the exit animation.
Implementation
@mustCallSuper
void onDetach() {
detach?.call();
detach = null;
}
Called during pop before the future is completed. Override for cleanup that must happen before the exit animation.
@mustCallSuper
void onDetach() {
detach?.call();
detach = null;
}