FormSchema class abstract

A base class for strongly-typed forms.

Users extend this class and define getters for their inputs. This provides Type Safety (via the getters) AND Group Logic (via the list).

Constructors

FormSchema()
const

Properties

firstError → dynamic
Returns the first error found (useful for general snackbars).
no setter
hashCode int
The hash code for this object.
no setterinherited
inputs List<FormInput>
The list of inputs, derived automatically.
no setter
isNotValid bool
no setter
isTouched bool
no setter
isUntouched bool
no setter
isValid bool
no setter
namedInputs Map<String, FormInput>
Defines the inputs with their associated keys (field names).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, dynamic>
Automatically generates a Map of current values. Uses a "Collection For" to ensure a Map<String, dynamic> is returned.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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