prompt method

  1. @override
String prompt(
  1. String question
)
override

Prompts the user with a question and returns their trimmed input line.

Implementation

@override
String prompt(String question) {
  io.stdout.write(question);
  return io.stdin.readLineSync() ?? '';
}