Schema.array constructor

Schema.array({
  1. required Schema items,
  2. String? description,
  3. bool? nullable,
})

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

Implementation

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