Field constructor

const Field({
  1. String? name,
  2. String? description,
  3. bool deprecated = false,
  4. List<Object>? examples,
  5. int? minLength,
  6. int? maxLength,
  7. String? pattern,
  8. StringFormat? format,
  9. num? minimum,
  10. num? maximum,
  11. bool exclusiveMinimum = false,
  12. bool exclusiveMaximum = false,
  13. num? multipleOf,
  14. int? minItems,
  15. int? maxItems,
  16. bool uniqueItems = false,
})

Creates a new Field annotation.

Implementation

const Field({
  this.name,
  this.description,
  this.deprecated = false,
  this.examples,
  this.minLength,
  this.maxLength,
  this.pattern,
  this.format,
  this.minimum,
  this.maximum,
  this.exclusiveMinimum = false,
  this.exclusiveMaximum = false,
  this.multipleOf,
  this.minItems,
  this.maxItems,
  this.uniqueItems = false,
});