ArgumentDefinition<T, U> constructor

ArgumentDefinition<T, U>({
  1. required String name,
  2. required String? description,
  3. required UsageGroup? usageGroup,
  4. required Requires<U> requires,
  5. required ValueParser<T> parser,
  6. required ValuePrinter<T> printer,
  7. required Accumulator<T, U> accumulator,
})

Implementation

ArgumentDefinition(
    {required String name,
    required String? description,
    required UsageGroup? usageGroup,
    required this.requires,
    required this.parser,
    required this.printer,
    required this.accumulator})
    : valueHolder = Arg._(name, requires.defaultValue),
      super(name: name, description: description, usageGroup: usageGroup);