MultiSelectSearchableDropdown class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MultiSelectSearchableDropdown
Constructors
-
MultiSelectSearchableDropdown({Key? key, required List list, required List initiallySelected, String label = 'label', String id = 'id', required ValueChanged<
List> onChange, int numberOfItemsLabelToShow = 3, Decoration? boxDecoration, double? width, String whenEmpty = 'Select options', bool isLarge = false, bool includeSelectAll = false, bool includeSearch = false, TextStyle textStyle = const TextStyle(fontSize: 15), Duration duration = const Duration(milliseconds: 300), Color? checkboxFillColor, Color? splashColor, TextStyle? listTextStyle, EdgeInsets? padding}) -
Mutiple selection dropdown for List of Maps.
const
-
MultiSelectSearchableDropdown.simpleList({Key? key, required List list, required List initiallySelected, required ValueChanged<
List> onChange, int numberOfItemsLabelToShow = 3, Decoration? boxDecoration, double? width, String whenEmpty = 'Select options', bool isLarge = false, bool includeSelectAll = false, bool includeSearch = false, TextStyle textStyle = const TextStyle(fontSize: 15), Duration duration = const Duration(milliseconds: 300), Color? checkboxFillColor, Color? splashColor, TextStyle? listTextStyle, EdgeInsets? padding}) -
Mutiple selection dropdown for simple List.
const
Properties
- boxDecoration → Decoration?
-
Decoration for input element
final
- checkboxFillColor → Color?
-
Checkbox fill color in list tile.
final
- duration → Duration
-
Duration?
for debounce in search option. Defaults to 300 milliseconds.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
id
key in a Map to identify an item. Defaults to 'id'final - includeSearch → bool
-
Includes a search option when
true
final - includeSelectAll → bool
-
Includes a select all button when
true
final - initiallySelected → List
-
Initially selected list
final
- isLarge → bool
-
Dropdown size
final
- isSimpleList → bool
-
If the list is a simple list
or a list of map
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
label
key in a Map to show as an option. Defaults to 'label'final - list → List
-
List of options to select from
final
- listTextStyle → TextStyle?
-
TextStyle for the text on list tile.
final
- numberOfItemsLabelToShow → int
-
Number of items to show as text,
beyond that it will show
n
selectedfinal -
onChange
→ ValueChanged<
List> -
onChange
callback, called everytime when an item is added or removed with the new list as argumentfinal - padding → EdgeInsets?
-
Padding for the input element.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- splashColor → Color?
-
Splash color on the list tile when the list is clicked.
final
- textStyle → TextStyle
-
TextStyle?
for the text on anchor element.final - whenEmpty → String
-
Text to show when selected list is empty
final
- width → double?
-
Width of the input widget. If this
is null the widget will try to take
full width of the parent.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MultiSelectSearchableDropdown> -
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}) → 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