StringSchema class final

A JSON string schema.

Inheritance
Available extensions

Constructors

StringSchema()

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.
format(String value) → StringSchema
Of the format value (email, date-time, uuid...).
max(int value) → StringSchema
At most value characters.
min(int value) → StringSchema
At least value characters.
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.
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