Schema.array constructor

Schema.array({
  1. required Schema items,
  2. String? description,
  3. String? title,
  4. bool? nullable,
  5. int? minItems,
  6. int? maxItems,
})

Construct a schema for an array of values with a specified type.

Implementation

Schema.array({
  required Schema items,
  String? description,
  String? title,
  bool? nullable,
  int? minItems,
  int? maxItems,
}) : this(
        SchemaType.array,
        description: description,
        title: title,
        nullable: nullable,
        items: items,
        minItems: minItems,
        maxItems: maxItems,
      );