OptionDefinition constructor

const OptionDefinition({
  1. required String name,
  2. String? abbr,
  3. required String description,
  4. OptionType type = OptionType.flag,
  5. String? defaultValue,
  6. List<String>? allowedValues,
  7. bool mandatory = false,
  8. bool negatable = false,
  9. String? valueName,
  10. bool hidden = false,
})

Implementation

const OptionDefinition({
  required this.name,
  this.abbr,
  required this.description,
  this.type = OptionType.flag,
  this.defaultValue,
  this.allowedValues,
  this.mandatory = false,
  this.negatable = false,
  this.valueName,
  this.hidden = false,
});