TextFieldData class
Class representing data for a text field Can be used to make text fields depending on same behavior
Constructors
-
TextFieldData({required String labelText, required TextEditingController controller, String? persistenceId, String? validator(String?)?, AutovalidateMode? autovalidateMode, TextInputType? keyboardType, List<
TextInputFormatter> ? inputFormatters, TextCapitalization textCapitalization = TextCapitalization.none}) - Class representing data for a text field Can be used to make text fields depending on same behavior
Properties
- autovalidateMode → AutovalidateMode?
-
Autovalidate mode for the text field
final
- controller → TextEditingController
-
Controller for the text field
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasValidInput → bool
-
no setter
-
inputFormatters
→ List<
TextInputFormatter> ? -
Input formatters for the text field
final
- keyboardType → TextInputType?
-
Keyboard type for the text field
final
- labelText → String
-
Label of the text field
final
- persistenceId → String?
-
Unique identifier for the text field, necessary for PersistedTextField
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
This is to directly get the text from the controller
getter/setter pair
- textCapitalization → TextCapitalization
-
Text capitalization for the text field
Default is TextCapitalization.none
final
- validator → String? Function(String?)?
-
Validator function for the text field
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setControllerWithFavorite(
{bool dependency = true}) → void - Call this function to set the empty text field controller with the favorite value
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited