confirmation static method

Future<bool> confirmation(
  1. String scope,
  2. String action,
  3. String message,
  4. String question,
)

Implementation

static Future<bool> confirmation(
    String scope, String action, String message, String question) async {
  Show.pleaseConfirm(scope, action, message, question);
  var confirmation = await prompt('CONFIRMATION');
  return confirmation.toLowerCase() == 'y' ||
      confirmation.toLowerCase() == 'yes';
}