onPopInvokedWithResult method

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

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

@override
void onPopInvokedWithResult(bool didPop, T? result) {
  for (final PopEntry<Object?> popEntry in _popEntries) {
    popEntry.onPopInvokedWithResult(didPop, result);
  }
  super.onPopInvokedWithResult(didPop, result);
}