StringSchema class

Schema for string values

Implemented types

Constructors

StringSchema({bool required = false, int? minLength, int? maxLength, String? pattern})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxLength → int?
final
minLength → int?
final
pattern → String?
final
required → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getErrors(String? value) → List<String>
Get validation errors
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(String? value) → bool
Validate the event data
override

Operators

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