Spinner class

Constructors

Spinner({Key? key, required List<SpinnerListItem> data, dynamic selectedItems(List)?, Widget listBuilder(int index)?, bool enableMultipleSelection = false, Widget? bottomSheetTitle, Widget? submitButtonChild, TextFormField? searchWidget, bool isSearchVisible = true, Color dropDownBackgroundColor = Colors.transparent})

Properties

bottomSheetTitle Widget?
This gives the bottom sheet title.
final
data List<SpinnerListItem>
This will give the list of data.
final
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
isSearchVisible bool
isSearchVisible flag use to manage the search widget visibility by default it is True so widget will be visible.
final
listBuilder Widget Function(int index)?
listBuilder will gives index as a function parameter and you can return your own widget based on index.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 → dynamic Function(List)?
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