FieldSchema constructor

const FieldSchema(
  1. JsonType type, {
  2. bool isRequired = true,
  3. List<Object?>? allowed,
})

Describes a field of type. isRequired defaults to true; pass allowed to restrict the value to a fixed set. Audited: 2026-06-12 11:26 EDT

Implementation

const FieldSchema(this.type, {this.isRequired = true, this.allowed});