FormeKey class

form key is a global key , also used to manage form

Inheritance

Constructors

FormeKey({String? debugLabel})

Properties

currentContext BuildContext?
The build context in which the widget with this key builds.
no setterinherited
currentState FormeState?
The State for the widget in the tree that currently has this global key.
no setterinherited
currentWidget Widget?
The widget in the tree that currently has this global key.
no setterinherited
fields List<FormeFieldState>
no setter
hashCode int
The hash code for this object.
no setterinherited
initialized bool
whether formKey is initialized
no setter
isValueChanged bool
no setter
quietlyValidate bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validation FormeValidation
no setter
value Map<String, dynamic>
getter/setter pair

Methods

addVisitor(FormeVisitor visitor) bool
field<T extends FormeFieldState>(String name) → T
hasField(String name) bool
maybeField<T extends FormeFieldState>(String name) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeVisitor(FormeVisitor visitor) bool
reset() → void
save() → void
toString() String
A string representation of this object.
inherited
validate({bool quietly = false, Set<String> names = const {}, bool clearError = false, bool validateByOrder = false}) Future<FormeValidateSnapshot>

Operators

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