promptConfirm method

  1. @protected
Future<bool> promptConfirm(
  1. String message, {
  2. bool? defaultValue,
})

Prompts the user for a y/n confirmation on the terminal.

Subclasses override this to answer without a terminal.

Implementation

@protected
Future<bool> promptConfirm(String message, {bool? defaultValue}) {
  return prompts.confirm(
    message,
    defaultValue: defaultValue,
    logger: _logger,
  );
}