withDefault<T extends Enum> static method

DefaultedOption<T> withDefault<T extends Enum>(
  1. String name, {
  2. required List<T> choices,
  3. required T defaultValue,
  4. String? short,
  5. String? description,
  6. bool hidden = false,
})

Implementation

static DefaultedOption<T> withDefault<T extends Enum>(
  String name, {
  required List<T> choices,
  required T defaultValue,
  String? short,
  String? description,
  bool hidden = false,
}) => _DefaultedChoiceOption(
  name,
  choices: choices,
  defaultValue: defaultValue,
  short: short,
  description: description,
  hidden: hidden,
);