ElevarmDropdownInputField<T> class

Elevarm UI's dropdown input field.

Inheritance
Available Extensions

Constructors

ElevarmDropdownInputField({required List<ElevarmDropdownInputFieldOption<T>> options, required void onChanged(T? value), ElevarmTextInputFieldSize textInputSize = ElevarmTextInputFieldSize.md, bool enabled = true, String? hintText, String? errorText, IconData suffixIconAssetName = ElevarmIconsOutline.chevron_down, IconData checkIconAssetName = ElevarmIconsOutline.check, String? label, String? helperText, T? initialValue, bool isRequired = false, TextEditingController? controller, Key? key})
const

Properties

checkIconAssetName IconData
Check icon asset name for selected option.
final
controller TextEditingController?
Optional TextEditingController.
final
enabled bool
If false the text field is "disabled": it ignores taps and its decoration is rendered in grey.
final
errorText String?
The error text if any.
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
The helper text.
final
hintText String?
The hint text.
final
initialValue → T?
The initial value.
final
isRequired bool
Whether the field is required or not.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String?
The label above the input field.
final
onChanged → void Function(T? value)
The callback when value is changed.
final
options List<ElevarmDropdownInputFieldOption<T>>
The dropdown options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixIconAssetName IconData
Suffix icon asset name.
final
textInputSize ElevarmTextInputFieldSize
The text field size.
final

Methods

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