ArgumentDefinition<T, U> constructor
ArgumentDefinition<T, U> ({
- required String name,
- required String? description,
- required UsageGroup? usageGroup,
- required Requires<
U> requires, - required ValueParser<
T> parser, - required ValuePrinter<
T> printer, - 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);