promptForTextInput method

  1. @override
Future<String> promptForTextInput(
  1. String message, {
  2. String defaultValue = "",
})
override

Implementation

@override
Future<String> promptForTextInput(String message,
    {String defaultValue = ""}) async {
  stdout.write("$message (default: $defaultValue): ");
  String input = stdin.readLineSync()!;
  return input.isNotEmpty ? input : defaultValue;
}