inputPrompt static method

String inputPrompt(
  1. String prompt
)

Prompts the user for input and returns their response.

Implementation

static String inputPrompt(String prompt) {
  stdout.write(prompt);
  return stdin.readLineSync() ?? '';
}