ChipDecoration class

Configuration class for customizing the appearance of chips in the multi-select dropdown.

Constructors

ChipDecoration({Widget? deleteIcon, Color? backgroundColor, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 4), BoxBorder border = const Border(), double spacing = 8, double runSpacing = 12, TextStyle? labelStyle, BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(12)), bool wrap = true, int? maxDisplayCount, String overflowLabelBuilder(int remaining)?})
Creates a new instance of ChipDecoration.
const

Properties

backgroundColor → Color?
The background color of the chip.
final
border → BoxBorder
The border of the chip.
final
borderRadius → BorderRadiusGeometry
The border radius of the chip.
final
deleteIcon → Widget?
The icon to display for deleting a chip.
final
hashCode → int
The hash code for this object.
no setterinherited
labelStyle → TextStyle?
The style of the chip label.
final
maxDisplayCount → int?
The maximum number of chips to display.
final
overflowLabelBuilder → String Function(int remaining)?
A builder to customize the overflow label shown when maxDisplayCount is exceeded.
final
padding → EdgeInsets
The padding around the chip.
final
runSpacing → double
The spacing between chip rows (when the chips wrap).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spacing → double
The spacing between chips.
final
wrap → bool
Whether to wrap or not
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited