NavigatorPopHandler<T> constructor

const NavigatorPopHandler<T>({
  1. Key? key,
  2. @Deprecated('Use onPopWithResult instead. ' 'This feature was deprecated after v3.26.0-0.1.pre.') VoidCallback? onPop,
  3. PopResultCallback<T>? onPopWithResult,
  4. bool enabled = true,
  5. required Widget child,
})

Creates an instance of NavigatorPopHandler.

Implementation

const NavigatorPopHandler({
  super.key,
  @Deprecated(
    'Use onPopWithResult instead. '
    'This feature was deprecated after v3.26.0-0.1.pre.',
  )
  this.onPop,
  this.onPopWithResult,
  this.enabled = true,
  required this.child,
}) : assert(onPop == null || onPopWithResult == null);