- {Key? key,
- required Widget child,
- bool canPop = true,
- 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,
});