PredictiveBack constructor

const PredictiveBack({
  1. required Widget child,
  2. Widget title = const Text('Are you sure?'),
  3. Widget content = const SizedBox.shrink(),
  4. String confirmActionLabel = 'Yes',
  5. String cancelActionLabel = 'No',
  6. bool canPop = false,
  7. bool leaveApp = false,
  8. Key? key,
})

Implementation

const PredictiveBack({
  required this.child,
  this.title = const Text('Are you sure?'),
  this.content = const SizedBox.shrink(),
  this.confirmActionLabel = 'Yes',
  this.cancelActionLabel = 'No',
  this.canPop = false,
  this.leaveApp = false,
  super.key,
});