getChoiceOption function

ChoiceOptions getChoiceOption(
  1. String message
)

Implementation

ChoiceOptions getChoiceOption(String message) {
  final selection = Select(
          prompt: message,
          options: ChoiceOptions.values.map((option) => option.option).toList())
      .interact();
  return ChoiceOptions.values[selection];
}