StandardMultiSelectField<T> class
Standard implementation of MultiSelectField.
Displays selected items as chips within the field area with full multiselect functionality including search, grouping, and custom widgets.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MultiSelectField<
T> - StandardMultiSelectField
Constructors
-
StandardMultiSelectField({Key? key, required List<
Choice< data(), required void onSelect(List<T> >Choice< choiceList, bool isFromDefaultData), Widget title(bool isEmpty)?, List<T> >Choice< ? defaultData, bool useTextFilter = false, Decoration? decoration, bool singleSelection = false, Widget? itemMenuButton, ButtonStyle? buttonStyle, Widget iconLeft()?, Widget iconRight()?, Widget multiSelectWidget(Choice<T> >T> choiceList)?, Widget singleSelectWidget(Choice<T> choiceList)?, bool isMandatory = false, TextStyle? itemMenuStyle, TextStyle? titleMenuStyle, TextStyle? textStyleSingleSelection, bool cleanCurrentSelection = false, bool selectAllOption = false, ItemColor? itemColor, String? label, TextStyle? textStyleLabel, ScrollbarConfig? scrollbarConfig}) -
const
Properties
-
final
- cleanCurrentSelection → bool
-
final
-
data
→ List<
Choice< Function()T> > -
final
- decoration → Decoration?
-
final
-
defaultData
→ List<
Choice< ?T> > -
final
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconLeft → Widget Function()?
-
final
- iconRight → Widget Function()?
-
final
- isMandatory → bool
-
final
- itemColor → ItemColor?
-
final
- itemMenuButton → Widget?
-
final
- itemMenuStyle → TextStyle?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
final
-
final
-
final
-
final
-
final
-
final
-
multiSelectWidget
→ Widget Function(Choice<
T> choiceList)? -
final
-
onSelect
→ void Function(List<
Choice< choiceList, bool isFromDefaultData)T> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollbarConfig → ScrollbarConfig?
-
final
- selectAllOption → bool
-
final
- singleSelection → bool
-
final
-
singleSelectWidget
→ Widget Function(Choice<
T> choiceList)? -
final
- textStyleLabel → TextStyle?
-
final
- textStyleSingleSelection → TextStyle?
-
final
- title → Widget Function(bool isEmpty)?
-
final
- titleMenuStyle → TextStyle?
-
final
- useTextFilter → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StandardMultiSelectField< 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