ConditionalWillPopScope constructor
const
ConditionalWillPopScope({
- Key? key,
- required Widget child,
- required WillPopCallback? onWillPop,
- required bool shouldAddCallback,
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 ConditionalWillPopScope({
Key? key,
required this.child,
required this.onWillPop,
required this.shouldAddCallback,
}) : super(key: key);