promptUser function

String promptUser(
  1. String question
)

Prompts the user for input and returns their response

Implementation

String promptUser(String question) {
  stdout.write('$_orange$question (y/n): $_reset');
  return stdin.readLineSync()?.toLowerCase() ?? 'n';
}