PopScope constructor

const PopScope(
  1. {Key? key,
  2. required Widget child,
  3. bool canPop = true,
  4. PopInvokedCallback? onPopInvoked}
)

Creates a widget that registers a callback to veto attempts by the user to dismiss the enclosing ModalRoute.

Implementation

const PopScope({
  super.key,
  required this.child,
  this.canPop = true,
  this.onPopInvoked,
});