MultipleSelectionSearchDropList<T> class

A customizable widget that allows users to select multiple options from a searchable dropdown list.

Displays a dropdown with checkboxes, optional search bar, and chips to show selected items.

Inheritance

Constructors

MultipleSelectionSearchDropList({Key? key, required MultiDropdownSearchListModel<T> dropListModel, required List<OptionItemsMultiSearch<T>> selectedItems, required ValueChanged<List<OptionItemsMultiSearch<T>>> onOptionsSelected, required String hintText, Color? dropboxColor, Color? dropBoxBorderColor, Color? scrollThumbColor, Radius? scrollRadius, double? scrollThickness, double? heightBottomContainer, Color? textColorItem, Color? textColorTitle, bool showArrowIcon = false, bool showClearButton = false, VoidCallback? onClear, double? height, double? width, EdgeInsetsGeometry? containerPadding, EdgeInsetsGeometry? containerMargin, Decoration? containerDecoration, required bool showBorder, required bool enable, Color? borderColor, Color? shadowColor, required double borderSize, BorderRadiusGeometry? borderRadius, List<BoxShadow>? boxShadow, double? fontSizeHint, double arrowIconSize = 20, Color? arrowColor, Widget? doneButton, bool enableSearch = true})
Creates a MultipleSelectionSearchDropList widget.
const

Properties

arrowColor Color?
Color of the arrow icon.
final
arrowIconSize double
Size of the arrow icon.
final
borderColor Color?
Color of the border when showBorder is true.
final
borderRadius BorderRadiusGeometry?
Border radius for the container.
final
borderSize double
Width of the border when showBorder is true.
final
boxShadow List<BoxShadow>?
List of box shadows to apply to the container.
final
containerDecoration Decoration?
Custom decoration for the dropdown container.
final
containerMargin EdgeInsetsGeometry?
Margin around the dropdown container.
final
containerPadding EdgeInsetsGeometry?
Padding inside the dropdown container.
final
doneButton Widget?
Optional custom widget for the "Done" button in the overlay.
final
dropBoxBorderColor Color?
Border color of the dropdown overlay.
final
dropboxColor Color?
Background color of the dropdown overlay.
final
dropListModel MultiDropdownSearchListModel<T>
The data model containing the dropdown options.
final
enable bool
Whether the dropdown is interactive.
final
enableSearch bool
Whether to show the search bar inside the dropdown.
final
fontSizeHint double?
Font size for the hint text.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the dropdown field.
final
heightBottomContainer double?
Maximum height of the dropdown container.
final
hintText String
Hint text displayed when no items are selected.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onClear VoidCallback?
Callback triggered when the clear button is pressed.
final
onOptionsSelected ValueChanged<List<OptionItemsMultiSearch<T>>>
Callback triggered when the selected options change.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollRadius Radius?
Radius of the scrollbar thumb.
final
scrollThickness double?
Thickness of the scrollbar.
final
scrollThumbColor Color?
Color of the scrollbar thumb.
final
selectedItems List<OptionItemsMultiSearch<T>>
The list of currently selected items.
final
shadowColor Color?
Shadow color of the container when border is not shown.
final
showArrowIcon bool
Whether to show a dropdown arrow icon.
final
showBorder bool
Whether to show a border around the container.
final
showClearButton bool
Whether to show a clear button.
final
textColorItem Color?
Text color for individual dropdown items.
final
textColorTitle Color?
Text color for the hint/placeholder.
final
width double?
Width of the dropdown field.
final

Methods

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