EasyFormzController class
Controller for managing form configurations and values.
- Inheritance
-
- Object
- ChangeNotifier
- EasyFormzController
Constructors
-
EasyFormzController.new({required List<
FormConfig> forms}) - Constructor for initializing the controller with a list of form configurations.
Properties
-
forms
→ List<
FormConfig> -
List of form configurations.
final
-
formValues
→ List<
FormValue> -
List of form values.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Disposes the controller by clearing all forms and form values.
override
-
getValue(
FormConfig config) → FormValue? - Retrieves the value for a given form configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setValue(
FormConfig config, dynamic value) → void - Sets the value for a given form configuration.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → bool - Validates all forms and updates their warning status.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited