Schema.boolean constructor

Schema.boolean({
  1. String? title,
  2. String? description,
})

Creates a JSON Schema definition for a bool.

See also:

  • BooleanSchema for the class that this factory constructor delegates to.

Implementation

factory Schema.boolean({String? title, String? description}) = BooleanSchema;