StringSchema class final
A JSON string schema.
- Inheritance
-
- Object
- SchemaType
- StringSchema
- 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. -
format(
String value) → StringSchema -
Of the format
value(email,date-time,uuid...). -
max(
int value) → StringSchema -
At most
valuecharacters. -
min(
int value) → StringSchema -
At least
valuecharacters. -
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. -
pattern(
String value) → StringSchema -
Matching the regular expression
value. -
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