askMultiple method

dynamic askMultiple(
  1. String prompt,
  2. List<Option> options
)

Implementation

askMultiple(String prompt, List<Option> options) {
  final input = _ask(prompt, options);

  try {
    return options[int.parse(input)].value;
  } catch (err) {
    return askMultiple(prompt, options);
  }
}