prompt method

  1. @override
Future<int> prompt(
  1. String message,
  2. List<String> choices
)
override

Prompt the user for input.

The message and choices are displayed to the user and the index of the chosen option is returned.

If this environmment is non-interactive (such as when running in a test) this method should throw NonInteractiveBuildException.

Implementation

@override
Future<int> prompt(String message, List<String> choices) =>
    _default.prompt(message, choices);