MultiSelectChip constructor
const
MultiSelectChip({
- Key? key,
- AbstractButtonStyle style = const ButtonStyle.primary(),
- required Object? value,
- required Widget child,
Creates a MultiSelectChip.
Designed to be used within multi-select components where it automatically integrates with the parent selection state for removal functionality.
Parameters:
value
(Object?, required): the value this chip represents in the selectionchild
(Widget, required): content displayed inside the chipstyle
(AbstractButtonStyle, default: primary): chip styling
Example:
MultiSelectChip(
value: user.id,
child: Row(
children: [
Avatar(user: user),
Text(user.name),
],
),
style: ButtonStyle.secondary(),
)
Implementation
const MultiSelectChip({
super.key,
this.style = const ButtonStyle.primary(),
required this.value,
required this.child,
});