WillPopScopeModifier constructor
const
WillPopScopeModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required WillPopCallback? onWillPop,
Creates a widget that registers a callback to veto attempts by the user to dismiss the enclosing ModalRoute.
The child
argument must not be null.
Implementation
const WillPopScopeModifier({
super.key,
super.child,
super.modifierKey,
required this.onWillPop,
});