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