onPopInvokedWithResult method

  1. @mustCallSuper
void onPopInvokedWithResult(
  1. bool didPop,
  2. T? result
)

Called after a route pop was handled.

Even when the pop is canceled, for example by a PopScope widget, this will still be called. The didPop parameter indicates whether or not the back navigation actually happened successfully.

Implementation

@mustCallSuper
void onPopInvokedWithResult(bool didPop, T? result) {
  if (_isPageBased) {
    final Page<T> page = settings as Page<T>;
    page.onPopInvoked(didPop, result);
  }
}