Field constructor
const
Field({
- String? name,
- String? description,
- bool deprecated = false,
- List<
Object> ? examples, - int? minLength,
- int? maxLength,
- String? pattern,
- StringFormat? format,
- num? minimum,
- num? maximum,
- bool exclusiveMinimum = false,
- bool exclusiveMaximum = false,
- num? multipleOf,
- int? minItems,
- int? maxItems,
- 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,
});