BASFInputField class

Inheritance

Constructors

BASFInputField({TextEditingController? controller, void onChanged(String)?, IconData? prefixIcon, String? hintText, String? labelText = '', String? initialText = '', String? validation(String)?, bool? initialValidation = true, bool? disabled = false, bool? withoutClear = false, bool? obscureText = false, TextInputType? inputType, EdgeInsets? padding, Key? key})
const

Properties

controller TextEditingController?
Controls the text being edited.
final
disabled bool?
This disables the interaction with the InputFiled changes its appearance.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
The hintText will be shown in the InputField if there is no input.
final
initialText String?
The initial text shown in the InputField.
final
initialValidation bool?
The initialValidation is to checks the initial value during creating the InputField.
final
inputType TextInputType?
Define the keyboard for this InputField.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelText String?
The label above the InputField.
final
obscureText bool?
This obscures the input.
final
onChanged → (void Function(String)?)
The onChanged returns the text inside the InputField anytime it's changed.
final
padding EdgeInsets?
The padding for the whole InputField.
final
prefixIcon IconData?
Adds a icon before the text in the InputField.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validation → (String? Function(String)?)
This triggers the color of the field and adds an error text right under the InputField for the user if wanted. This validation is triggered also during initialization by default. You can change that with the initialValidation attribute.
final
withoutClear bool?
This enables you to don't show the clear button at the end of the InputField.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BASFInputField>
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