FormeController class abstract

base form controller

you can access a form controller by FormeKey or FormeKey.of

Implementers

Constructors

FormeController()

Properties

controllers List<FormeFieldController>
get all registered controllers
no setter
data Map<String, dynamic>
get form data
getter/setter pair
fieldsListenable ValueListenable<Map<String, FormeFieldController?>>
listen when fields initialed or disposed
no setter
hashCode int
The hash code for this object.
no setterinherited
isValueChanged bool
whether form' value changed after initialized
no setter
quietlyValidate bool
whether validate is quietly
getter/setter pair
readOnly bool
whether form is readonly
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validation FormeValidation
get validation of Form
no setter
validationListenable ValueListenable<FormeValidation>
used to listen any form field's validation changes
no setter

Methods

field<T extends FormeFieldController>(String name) → T
find FormeFieldController by name
fieldListenable<T>(String name) ValueListenable<FormeFieldController<T>?>
listen when field initialed or disposed
hasField(String name) bool
whether form has a name field
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
reset form
save() → void
save all form fields
toString() String
A string representation of this object.
inherited
validate({bool quietly = false, Set<String> names, bool clearError = false, bool validateByOrder = false}) Future<FormeValidateSnapshot>
perform a validate

Operators

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