getUserInput static method
Ask for user input asynchronously, You can add a timeout period and a default value (When the timeout runs or when he enters an empty value).
Implementation
static Future<String> getUserInput({
required String Function(String?, int?) promptBuilder,
String? defaultValue,
Duration? timeOut,
}) async =>
await getUserInputImpl(promptBuilder,
defaultValue: defaultValue, timeOut: timeOut);