onPop property

  1. @Deprecated('Use onPopWithResult instead. ' 'This feature was deprecated after v3.26.0-0.1.pre.')
VoidCallback? onPop
final

Called when a handleable pop event happens.

For example, a pop is handleable when a Navigator in child has multiple routes on its stack. It's not handleable when it has only a single route, and so onPop will not be called.

Typically this is used to pop the Navigator in child. See the sample code on NavigatorPopHandler for a full example of this.

Implementation

@Deprecated(
  'Use onPopWithResult instead. '
  'This feature was deprecated after v3.26.0-0.1.pre.',
)
final VoidCallback? onPop;