MultiSelectContainer<T> class

Container for multi MultiSelectCard.

Inheritance

Constructors

MultiSelectContainer({Key? key, required List<MultiSelectCard<T>> items, required void onChange(List<T> selectedItems, T selectedItem), int? maxSelectableCount, bool isMaxSelectableWithPerpetualSelects = false, void onMaximumSelected(List<T> selectedItems, T selectedItem)?, EdgeInsetsGeometry? itemsPadding, MultiSelectDecorations itemsDecoration = const MultiSelectCardinitialDecoration(), MultiSelectTextStyles textStyles = const MultiSelectTextStyles(), MultiSelectPrefix? prefix, MultiSelectSuffix? suffix, WrapSettings wrapSettings = const WrapSettings(), ListViewSettings listViewSettings = const ListViewSettings(), bool showInListView = false, MultiSelectAnimations animations = const MultiSelectAnimations(), MultiSelectAlignments alignments = const MultiSelectAlignments(), Color? splashColor, Color? highlightColor, MultiSelectController<T>? controller, bool singleSelectedItem = false})
const

Properties

alignments MultiSelectAlignments
Row alignment settings for inside of Multi Select Item card.
final
animations MultiSelectAnimations
Animation settings
final
controller MultiSelectController<T>?
A Controller for multi select. Allows to get all selected items, de select all, select all.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
A Common highlight color for all.
final
isMaxSelectableWithPerpetualSelects bool
if true -> maxSelectingCount = maxSelectingCount + PerpetualSelected items.
final
items List<MultiSelectCard<T>>
MultiSelectCard List for the multi select container.
final
itemsDecoration MultiSelectDecorations
Common decorations for all items.
final
itemsPadding EdgeInsetsGeometry?
MultiSelectCard Item padding.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listViewSettings ListViewSettings
List view settings for if showInListView = true.
final
maxSelectableCount int?
Maximum selectable count.
final
onChange → void Function(List<T> selectedItems, T selectedItem)
Call when item is selected.
final
onMaximumSelected → (void Function(List<T> selectedItems, T selectedItem)?)
Call when reached to the maximum selectable count.
final
prefix MultiSelectPrefix?
Common optional widget to place on the line before in every Multi Select Item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showInListView bool
if -> true, Show all multiselect items in a list view.
final
singleSelectedItem bool
let select only one
final
splashColor Color?
A Common splash color for all.
final
suffix MultiSelectSuffix?
Common optional widget to place on the line after in every Multi Select Item.
final
textStyles MultiSelectTextStyles
Common text styles for all items.
final
wrapSettings WrapSettings
Default all items are in a Wrap. so these are the settings for Wrap.
final

Methods

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