DropDown class
Constructors
-
DropDown({Key? key, required List<
SelectedListItem> data, SelectedItemsCallBack? selectedItems, ListItemBuilder? listItemBuilder, bool enableMultipleSelection = false, Widget? bottomSheetTitle, bool isDismissible = true, Widget? submitButtonChild, Widget? clearButtonChild, TextFormField? searchWidget, EdgeInsets? searchPadding, String? searchHintText = 'Search', bool isSearchVisible = true, Color dropDownBackgroundColor = Colors.transparent, BottomSheetListener? bottomSheetListener})
Properties
- bottomSheetListener → BottomSheetListener?
-
bottomSheetListener that listens for BottomSheet bubbling up the tree.
final
- bottomSheetTitle → Widget?
-
This gives the bottom sheet title.
final
- clearButtonChild → Widget?
-
You can set your custom clear button when the multiple selection is enabled.
final
-
data
→ List<
SelectedListItem> -
This will give the list of data.
final
- dropDownBackgroundColor → Color
-
This will set the background color to the dropdown.
final
- enableMultipleSelection → bool
-
This will give selection choice for single or multiple for list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDismissible → bool
-
isDismissible Specifies whether the bottom sheet will be dismissed when user taps on the scrim.
If true, the bottom sheet will be dismissed when user taps on the scrim.
by default it is
True
.final - isSearchVisible → bool
-
isSearchVisible flag use to manage the search widget visibility
by default it is
True
so widget will be visible.final - listItemBuilder → ListItemBuilder?
-
listItemBuilder will gives
index
as a function parameter and you can return your own widget based onindex
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchHintText → String?
-
searchHintText is use to show the hint text into the search widget.
by default it is
Search
text.final - searchPadding → EdgeInsets?
-
searchPadding is a parameter used to control the outer margin of the search box
final
- searchWidget → TextFormField?
-
searchWidget is use to show the text box for the searching.
If you are passing your own widget then you must have to add TextEditingController for the TextFormField.
final
- selectedItems → SelectedItemsCallBack?
-
This will give the call back to the selected items from list.
final
- submitButtonChild → Widget?
-
You can set your custom submit button when the multiple selection is enabled.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited