SearchableDropdownField<T> class

Inheritance

Constructors

SearchableDropdownField({Key? key, String? label, required List<T> items, T? value, ValueChanged<T?>? onChanged, required String itemLabel(T), FormFieldValidator<T>? validator, InputDecoration? decoration, String? hintText, String? searchHintText, String? noItemsFoundText, Widget? prefixIcon, Widget? suffixIcon, bool showSearchBox = true, bool searchMatcher(T item, String query)?, Icon? searchIcon, Icon? dropdownIcon, bool enableClearButton = true, String? clearButtonTooltip, int? maxHeight, double? dropdownWidth, bool closeOnSelection = true, bool showCheckboxes = false, bool enableMultiSelect = false, List<T>? selectedValues, ValueChanged<List<T>>? onMultiSelectChanged, Widget itemBuilder(T item)?, Widget selectedItemBuilder(T item, bool isSelected)?, double? itemHeight, EdgeInsets? itemPadding, Widget? dropdownHeader, Widget? dropdownFooter, VoidCallback? onAddNew, String? addNewText, bool autofocus = false, FocusNode? focusNode, String? semanticLabel, bool showSelectedItemsChips = false, int? maxSelectedItemsToShow, bool isLoading = false, Widget? loadingWidget, Future<List<T>> asyncItemsLoader(String query)?, Color? dropdownBackgroundColor, BorderRadius? dropdownBorderRadius, double? dropdownElevation, TextStyle? selectedItemTextStyle, TextStyle? itemTextStyle})
const

Properties

addNewText → String?
final
asyncItemsLoader → Future<List<T>> Function(String query)?
final
autofocus → bool
final
clearButtonTooltip → String?
final
closeOnSelection → bool
final
decoration → InputDecoration?
final
final
final
final
final
final
final
final
enableClearButton → bool
final
enableMultiSelect → bool
final
focusNode → FocusNode?
final
hashCode → int
The hash code for this object.
no setterinherited
hintText → String?
final
isLoading → bool
final
itemBuilder → Widget Function(T item)?
final
itemHeight → double?
final
itemLabel → String Function(T)
final
itemPadding → EdgeInsets?
final
items → List<T>
final
itemTextStyle → TextStyle?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
final
loadingWidget → Widget?
final
maxHeight → int?
final
maxSelectedItemsToShow → int?
final
noItemsFoundText → String?
final
onAddNew → VoidCallback?
final
onChanged → ValueChanged<T?>?
final
onMultiSelectChanged → ValueChanged<List<T>>?
final
prefixIcon → Widget?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchHintText → String?
final
searchIcon → Icon?
final
searchMatcher → bool Function(T item, String query)?
final
selectedItemBuilder → Widget Function(T item, bool isSelected)?
final
selectedItemTextStyle → TextStyle?
final
selectedValues → List<T>?
final
semanticLabel → String?
final
showCheckboxes → bool
final
showSearchBox → bool
final
showSelectedItemsChips → bool
final
suffixIcon → Widget?
final
validator → FormFieldValidator<T>?
final
value → T?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<SearchableDropdownField<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, int wrapWidth = 65}) → 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