ConditionalWillPopScope constructor

const ConditionalWillPopScope({
  1. Key? key,
  2. required Widget child,
  3. required WillPopCallback? onWillPop,
  4. 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);