Formify class

A utility class for managing and interacting with a specific form field within a Flutter application.

Constructors

Formify(FormifyForms _forms, String _attribute, [bool isLoading = false])
Creates a new instance of the Formify class.

Properties

attribute String
Gets the name of the attribute associated with this form field.
no setter
controller TextEditingController
Gets the controller for this form field.
no setter
error String?
Gets the first error message associated with this form field.
no setter
errors List<String>?
Gets the error messages associated with this form field.
no setter
formKey GlobalKey<FormFieldState>
Gets the form key associated with this form field.
no setter
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
Checks if this form field is in a loading state.
no setter
isRequired bool
Checks if this form field is required.
no setter
keyboardType TextInputType?
Gets the keyboard type for this form field (if applicable).
no setter
label String
Gets the label for this form field.
no setter
obscureText bool
Checks if the text in this form field should be obscured (e.g., for passwords).
no setter
rules List<FormifyRule>
Gets the validation rules associated with this form field.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textCapitalization TextCapitalization
Gets the text capitalization for this form field (if applicable).
no setter
type FormifyType
Gets the type of the form field.
no setter
value → dynamic
Gets the current value of this form field.
no setter

Methods

clearErrorMessages() → dynamic
Clears any error messages associated with this form field.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChanged(dynamic value) → dynamic
Sets the value of this form field.
toggleObscureText() → dynamic
Toggles the obscured text mode for this form field.
toString() String
A string representation of this object.
inherited

Operators

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