FormController class
Constructors
- FormController({ErrorResetMode errorResetMode = ErrorResetMode.resetOnFocus, bool debug = false})
Properties
- debug ↔ bool
-
getter/setter pair
- errorResetMode → ErrorResetMode
-
final
-
errors
→ Map<
String, String?> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validateOnFieldChange ↔ bool
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
addTextField<
T> ({required String name, T? initialValue, String? validator(T?)?}) → FieldController< T> -
dispose(
) → void -
getAllKeys(
) → List< String> -
getError(
String name) → String? -
getFieldController<
T> (String name) → FieldController< T> -
getFieldValue<
T> (String name) → T? -
getFocusNode(
String name) → FocusNode -
getValues(
) → Map< String, dynamic> -
isKeyExist(
String key) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
resetAllErrors(
) → void -
resetAllFields(
) → void - Сброисть поля в форме
-
resetError(
String name) → void -
setError(
String name, String? error) → void -
setValue(
String name, dynamic value) → void -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → bool
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited