OptionArgumentDefinition<T, U> constructor

OptionArgumentDefinition<T, U>({
  1. required String name,
  2. required String? description,
  3. required String? valueDescription,
  4. required UsageGroup? usageGroup,
  5. required U defaultValue,
  6. required ValueParser<T> parser,
  7. required ValuePrinter<T> printer,
  8. required Accumulator<T, U> accumulator,
  9. required String? short,
  10. required Flag? flag,
})

Implementation

OptionArgumentDefinition(
    {required String name,
    required String? description,
    required this.valueDescription,
    required UsageGroup? usageGroup,
    required U defaultValue,
    required ValueParser<T> parser,
    required ValuePrinter<T> printer,
    required Accumulator<T, U> accumulator,
    required this.short,
    required this.flag})
    : super(
          name: name,
          description: description,
          usageGroup: usageGroup,
          requires: Requires.optional(defaultValue),
          parser: parser,
          printer: printer,
          accumulator: accumulator);