enterText static method

Future<String?> enterText(
  1. String message
)

Implementation

static Future<String?> enterText(String message) async {
  stdout.write('\n$message');
  var text = stdin.readLineSync(encoding: Encoding.getByName('utf-8')!);
  return text;
}