FancyInput class

A class that represents an input field with validation rules and other properties.

Constructors

FancyInput({required String id, required List<String? Function()> rules(String value), TextEditingController? controller, String? mask, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters})
Creates a FancyInput instance with the provided properties. If no controller is provided, a new TextEditingController is created.

Properties

controller TextEditingController
The controller that manages the text being edited in this input field.
latefinal
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for this input field.
final
inputFormatters List<TextInputFormatter>?
A list of input formatters that can be applied to the text input (e.g., for custom formatting).
final
keyboardType TextInputType?
The keyboard type to use for this input field (e.g., numeric, email).
final
mask String?
A mask for the input field, used to format the entered text (e.g., phone number).
final
rules List<String? Function()> Function(String value)
A function that returns a list of validation rules for the input field. Each rule is a function that returns either a string error message or null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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