ChipDecoration class

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

Constructors

ChipDecoration({Icon? deleteIcon, Color? backgroundColor = const Color(0xFFE0E0E0), 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})
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 Icon?
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
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