askMessageWithInput static method

String askMessageWithInput(
  1. String message
)

Implementation

static String askMessageWithInput(String message) {
  String input = stdin.readLineSync() ?? '';

  if (input.isEmpty) {
    askConfirmation(message);
  }
  return input.toLowerCase().trim();
}