withDefault<T extends Enum> static method

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

Implementation

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