askConfirm static method

Future<bool> askConfirm(
  1. String question, {
  2. bool defaultValue = true,
  3. String yesLabel = 'Yes',
  4. String noLabel = 'No',
})

Implementation

static Future<bool> askConfirm(
  String question, {
  bool defaultValue = true,
  String yesLabel = 'Yes',
  String noLabel = 'No',
}) =>
    ConfirmPrompt.askConfirm(
      question,
      defaultValue: defaultValue,
      yesLabel: yesLabel,
      noLabel: noLabel,
    );