BooleanSchema class final

A JSON boolean schema.

Inheritance
Available extensions

Constructors

BooleanSchema()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

defaultTo(Object? value) → S

Available on S, provided by the SchemaTypeFluent extension

The default keyword; default is reserved in Dart.
description(String value) → S

Available on S, provided by the SchemaTypeFluent extension

The schema's description.
enumValues(Iterable<Object?> values) → S

Available on S, provided by the SchemaTypeFluent extension

The enum keyword; enum is reserved in Dart.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullable([bool nullable = true]) → S

Available on S, provided by the SchemaTypeFluent extension

Allows null too.
required([bool required = true]) → S

Available on S, provided by the SchemaTypeFluent extension

Marks the property as required in its object.
title(String value) → S

Available on S, provided by the SchemaTypeFluent extension

The schema's title.
toArray() → Map<String, Object?>
The schema as a JSON Schema map.
inherited
toJson() → Map<String, Object?>
The schema as JSON.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited