DfSearchableMultiSelectDropdown<T> class
Constructors
-
DfSearchableMultiSelectDropdown.new({Key? key, List<DropDownModel<T>>? selectedValues, Future<List<DropDownModel<T>>> onSearch(String searchText)?, MultiSelectorDecoration? selectorDecoration, List<DropDownModel<T>> initData = const [], String? labelText, String? hintText, dynamic onOptionSelected(List<DropDownModel<T>>)?, String? validator(List<DropDownModel<T>>?)?, DropdownDecoration? decoration, Widget? arrowWidget, DropdownType dropdownType = DropdownType.expandable, bool disabled = false, Future<List<DropDownModel<T>>>? asyncInitData, bool closeOnTapOutside = true, int? displayResultsCount})
-
Constructor for DfSearchableMultiSelectDropdown.
const
Properties
-
arrowWidget
→ Widget?
-
Widget displayed for the dropdown arrow icon.
finalinherited
-
asyncInitData
→ Future<List<DropDownModel<T>>>?
-
Future that provides the initial list of dropdown options.
finalinherited
-
closeOnTapOutside
→ bool
-
Base class for dropdown widgets.
finalinherited
-
decoration
→ DropdownDecoration?
-
Decoration for customizing the dropdown's appearance (e.g., border, padding, etc.).
finalinherited
-
disabled
→ bool
-
finalinherited
-
displayResultsCount
→ int?
-
Define max count of displayed elements in the dropdown selector
Default value is null, and all available results will be displayed
final
-
dropdownType
→ DropdownType
-
Default value is
DropdownType.expandable
, and it's used to switch between the expandable, and
the overlay appearance
finalinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hintText
→ String?
-
Placeholder text displayed when no value is selected.
finalinherited
-
initData
→ List<DropDownModel<T>>
-
Initial list of dropdown options.
finalinherited
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
labelText
→ String?
-
The label text for the dropdown field.
finalinherited
-
multiSelectValidator
→ String? Function(List<DropDownModel<T>>?)?
-
Provides a DropDownModel object if selected, and
null
if not
final
-
onOptionSelected
→ dynamic Function(DropDownModel<T>?)?
-
Callback triggered when an option from the dropdown is selected.
finalinherited
-
onOptionsSelected
→ dynamic Function(List<DropDownModel<T>>)?
-
Callback triggered when options from the dropdown are selected.
final
-
onSearch
→ Future<List<DropDownModel<T>>> Function(String searchText)?
-
Function that performs the search operation based on the user's input. It returns a list of filtered options.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedValue
→ DropDownModel<T>?
-
The currently selected dropdown value.
finalinherited
-
selectedValues
→ List<DropDownModel<T>>?
-
The currently selected list of dropdown values.
final
-
selectorDecoration
→ MultiSelectorDecoration?
-
Decoration for customizing the multi-select dropdown selector (e.g., background color, height, etc.).
final
-
validator
→ String? Function(DropDownModel<T>?)?
-
Provides a DropDownModel object if selected, and
null
if not
finalinherited