ChipData class

Represents the data configuration for a Chip widget. This model holds all the data needed to configure a chip's appearance and behavior.

Constructors

ChipData({required String label, IconData? icon, Widget? avatar, IconData? trailingIcon, String? id, Map<String, dynamic>? metadata})
Creates a new ChipData instance.
const

Properties

avatar → Widget?
Optional avatar widget (such as an image or CircleAvatar).
final
hashCode → int
The hash code for this object.
no setteroverride
icon → IconData?
Optional icon to display before the label.
final
id → String?
A unique identifier for the chip.
final
label → String
The primary text label displayed on the chip.
final
metadata → Map<String, dynamic>?
Additional metadata that can be stored with the chip.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trailingIcon → IconData?
Optional trailing icon (commonly used for delete/remove actions).
final

Methods

copyWith({String? label, IconData? icon, Widget? avatar, IconData? trailingIcon, String? id, Map<String, dynamic>? metadata}) → ChipData
Creates a copy of this ChipData with the given fields replaced.
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.
override