Form class abstract

Form is a base class for building your own forms. Please see the tests for examples on how they can be used.

Constructors

Form()

Properties

hashCode int
The hash code for this object.
no setterinherited
isValid bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() List<FormError>
Validates your form. Returns a list of form errors, or an empty list if there are no errors - in which case isValid will be true. Validation is handled lazily so you'll need to call this function to trigger validation.
validator() List<FormError>
A function that validates your form. Returns a list of form errors, or an empty list if there are no errors - in which case isValid will be true.

Operators

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