onDetach method

  1. @mustCallSuper
void onDetach()
inherited

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;
}