StringSchema class

Inheritance
Implementers
Available extensions

Constructors

StringSchema({bool optional = false, List<Validator<String>> validators = const []})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
optional → bool
finalinherited
required → bool
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validators → List<Validator<String>>
finalinherited

Methods

copyWith({bool? optional, List<Validator<String>>? validators}) → StringSchema
override
isEmail() → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

isEmpty() → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

isHexColor() → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

isOptional() → SchemaValue<String>
inherited
isPosixPath() → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

isRequired() → SchemaValue<String>
inherited
maxLength(int max) → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

minLength(int min) → SchemaValue<String>

Available on SchemaValue<String>, provided by the StringSchemaExt extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
tryParse(Object? value) → String?
override
validate(List<String> path, Object? value) → SchemaValidationResult
inherited
validateOrThrow(Object value) → void
inherited

Operators

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