input method

Future<String> input(
  1. String message, {
  2. String? defaultValue,
})

Input Request Guidelines

Prompts the user for a string. Accepts an optional defaultValue to specify what happens when the user simply presses Enter. Returns the string the user entered / accepted.

Format:

<message prompt>:

Implementation

Future<String> input(
  final String message, {
  final String? defaultValue,
}) async {
  return prompts.input(
    message,
    defaultValue: defaultValue,
    logger: _logger,
  );
}