FormerSchema<TForm extends FormerForm> class
abstract
A schema for FormerForm that checks whether a FormerForm conforms to the schema.
Constructors
- FormerSchema()
-
const
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
-
errorOf(
FormerField field) → String -
Retrieves the error message of
field
. Empty iffield
is valid. -
fieldIsValid(
bool isValidated) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
TForm form) → bool -
Validates the
form
by checking whether it conforms to this schema. Returns true ifform
is valid, false otherwise.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited