PopGuard constructor

const PopGuard({
  1. Key? key,
  2. required Widget child,
  3. FutureOr<bool> onPop(
    1. BuildContext context
    )?,
  4. FutureOr<void> onPopSuccess()?,
})

Implementation

const PopGuard({
  super.key,
  required this.child,
  this.onPop,
  this.onPopSuccess,
});