FormCraftFieldManager class base

A class that provides a set of utility methods for managing and interacting with a collection of FormCraftTextField widgets.

Constructors

FormCraftFieldManager()

Properties

fields Map<String, Widget>
Map of field keys to corresponding FormCraftTextField widgets.
no setter
globalKeys Map<String, GlobalKey<FormCraftTextFieldState>>
Map of field keys to their associated global keys for state management.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGlobalKey(String key, GlobalKey<FormCraftTextFieldState> globalKey) → void
Adds a FormCraftTextField widget to the internal map using the specified key.
buildTextField(String key, Widget textField(GlobalKey<FormCraftTextFieldState> globalKey)) Widget
Builds a FormCraftTextField widget with the specified key and configuration.
dispose() → void
Disposes of all resources and clears the field and global key maps.
getFocusNode(String key) FocusNode
Gets FocusNode for a specific field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassignInputValue(String key, String value) → void
Reassigns the input value for a specific field.
refreshForm() → void
Refreshes the state of all FormCraftTextField widgets.
setErrorMessage(String key, String? errorMessage, {bool isRedrawState = true}) → void
Sets a custom error message for a specific field.
submitForm() Map<String, String>
Submits the values of all FormCraftTextField widgets.
toString() String
A string representation of this object.
inherited

Operators

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