BaseDigitFormInput class
BaseDigitFormInput
is a base class for different form input fields. It provides a set of customizable
parameters and common functionality for building various types of input fields within a form.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BaseDigitFormInput
- Implementers
Constructors
-
BaseDigitFormInput({Key? key, required TextEditingController controller, bool isDisabled = false, bool readOnly = false, bool isRequired = false, String? initialValue, String? label, bool? info, String? infoText, IconData? suffixIcon, bool charCount = false, String? innerLabel, String? helpText, void onError(String?)?, TooltipTriggerMode triggerMode = TooltipTriggerMode.tap, bool preferToolTipBelow = false, String? suffixText, String? prefixText, void onSuffixTap(String)?, int minLine = 1, int maxLine = 1, double height = Default.height, int step = 1, int minValue = 0, int maxValue = 100, bool? showCurser, double width = Default.mobileInputWidth, void onChange(String)?, TextInputType keyboardType = TextInputType.text, List<
Validator> ? validations, DateTime? firstDate, DateTime? initialDate, TextAreaScroll textAreaScroll = TextAreaScroll.none, DateTime? lastDate, void onTap()?, bool isEditable = true, bool isTextArea = false, IconData? toggleSuffixIcon, List<TextInputFormatter> ? inputFormatters, TextAlign textAlign = TextAlign.start, String? errorMessage, bool capitalizeFirstLetter = true}) -
const
Properties
- capitalizeFirstLetter → bool
-
final
- charCount → bool
-
Indicates whether to show character count.
final
- controller → TextEditingController
-
Text editing controller for the input field.
final
- errorMessage → String?
-
validations provide you to send a error message, but you only want to pass a custom error message that can be also done by sending a errorMessage
final
- firstDate → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Preferred height of the input field.
final
- helpText → String?
-
Help text displayed below the input field.
final
- info → bool?
-
Indicates whether additional information (tooltip) is available.
final
- infoText → String?
-
Additional information text for tooltip.
final
- initialDate → DateTime?
-
specifically for date component
final
- initialValue → String?
-
Initial value for the input field.
final
- innerLabel → String?
-
Inner label (hint) for the input field.
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
input formatters
final
- isDisabled → bool
-
Indicates whether the input field is disabled.
final
- isEditable → bool
-
some fields can be edited either just filled the values
final
- isRequired → bool
-
Determines if the input field is required.
final
- isTextArea → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
Keyboard type for the input field.
final
- label → String?
-
Label displayed above the input field.
final
- lastDate → DateTime?
-
final
- maxLine → int
-
Maximum number of lines for the input field.
final
- maxValue → int
-
Maximum allowed value (used for specific input types like numbers).
final
- minLine → int
-
Minimum number of lines for the input field.
final
- minValue → int
-
Minimum allowed value (used for specific input types like numbers).
final
- onChange → (void Function(String)?)
-
Callback function triggered on input value change.
final
- onError → (void Function(String?)?)
-
Callback function triggered on validation error.
final
- onSuffixTap → (void Function(String)?)
-
Callback function triggered on suffix icon tap.
final
- onTap → (void Function()?)
-
Callback function triggered onTap tap.
final
- preferToolTipBelow → bool
-
Determines whether the tooltip should appear below the input field.
final
- prefixText → String?
-
Icon to be displayed as a prefix in the input field.
final
- readOnly → bool
-
Determines if the input field is read-only.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCurser → bool?
-
Determines whether the cursor should be visible in the input field.
final
- step → int
-
Step value (used for specific input types like numbers).
final
- suffixIcon → IconData?
-
Icon to be displayed as a suffix in the input field.
final
- suffixText → String?
-
Icon to be displayed as a suffix in the input field.
final
- textAlign → TextAlign
-
Text alignment within the input field.
final
- textAreaScroll → TextAreaScroll
-
final
- toggleSuffixIcon → IconData?
-
final
- triggerMode → TooltipTriggerMode
-
Determines when the tooltip should be triggered.
final
-
validations
→ List<
Validator> ? -
List of validation rules to be applied.
final
- width → double
-
Preferred width of the input field.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → BaseDigitFormInputState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited