Schema.array constructor

const Schema.array({
  1. Xml? xml,
  2. String? title,
  3. String? description,
  4. @JsonKey(name: 'default') List? defaultValue,
  5. bool? nullable,
  6. dynamic example,
  7. @JsonKey(fromJson: _fromJsonInt) int? minItems,
  8. @JsonKey(fromJson: _fromJsonInt) int? maxItems,
  9. required Schema items,
  10. @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
})

A generic Schema of array type

Implementation

const factory Schema.array({
  Xml? xml,
  String? title,
  String? description,
  @JsonKey(name: 'default') List? defaultValue,
  bool? nullable,
  dynamic example,
  @JsonKey(fromJson: _fromJsonInt) int? minItems,
  @JsonKey(fromJson: _fromJsonInt) int? maxItems,
  required Schema items,
  @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaArray;