MultiSelectContainer<T> class
MultiSelectContainer
widget provides a convenient and customizable way to implement
multi-select functionality in a Flutter application. With its ability to visually
represent the selection state, handle user interactions, and integrate with the
MultiSelectController
, the MultiSelectContainer simplifies the process of building
interactive and intuitive multi-select interfaces.
MultiSelectContainer({
super.key,
required this.tag,
required this.controller,
this.onTap,
this.colorOnSelected,
this.elevation = 0.0,
this.radius = 0.0,
this.widgetOnTop,
this.child,
});
tag
: A unique identifier for the container.controller
: An instance of MultiSelectController to control the selection.colorOnSelected
: The color to apply when the container is selected.onTap
: A callback function to handle the tap event on the container.elevation
: The elevation of the container card.radius
: The border radius of the container card.widgetOnTop
: An optional widget to display on top of the container.child
: The child widget to display within the container.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MultiSelectContainer
Constructors
- MultiSelectContainer({Key? key, required T tag, Color? colorOnSelected, void onTap()?, required MultiSelectController? controller, double elevation = 0.0, double radius = 0.0, Widget? widgetOnTop, Widget? child})
-
const
- MultiSelectContainer.icon({Key? key, required T tag, Widget? child, Color? colorOnSelected, void onTap()?, required MultiSelectController? controller, double elevation = 0.0, double radius = 0.0, required Icon icon})
Properties
- child → Widget?
-
final
- colorOnSelected → Color?
-
final
- controller → MultiSelectController?
-
final
- elevation → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → void Function()?
-
final
- radius → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → T
-
final
- widgetOnTop → Widget?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MultiSelectContainer> -
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