onPopInvoked property

  1. @Deprecated('Use onPopInvokedWithResult instead. ' 'This feature was deprecated after v3.22.0-12.0.pre.')
PopInvokedCallback? onPopInvoked
final

Called after a route pop was handled.

It's not possible to prevent the pop from happening at the time that this method is called; the pop has already happened. Use canPop to disable pops in advance.

This will still be called even when the pop is canceled. A pop is canceled when the relevant Route.popDisposition returns false, such as when canPop is set to false on a PopScope. The didPop parameter indicates whether or not the back navigation actually happened successfully.

Implementation

@Deprecated(
  'Use onPopInvokedWithResult instead. '
  'This feature was deprecated after v3.22.0-12.0.pre.',
)
final PopInvokedCallback? onPopInvoked;