BooleanSchema class final
A JSON boolean schema.
- Inheritance
-
- Object
- SchemaType
- BooleanSchema
- Available extensions
Constructors
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
Thedefaultkeyword;defaultis 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
Theenumkeyword;enumis 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
Allowsnulltoo. -
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