SelectableChipAttributes class

An interface for material design chips that can be selected.

The defaults mentioned in the documentation for each attribute are what the implementing classes typically use for defaults (but this class doesn't provide or enforce them).

See also:

  • InputChip, a chip that represents a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.
  • ChoiceChip, allows a single selection from a set of options. Choice chips contain related descriptive text or categories.
  • FilterChip, uses tags or descriptive words as a way to filter content.
Implemented by


onSelected ValueChanged<bool>
Called when the chip should change between selected and deselected states. [...]
selected → bool
Whether or not this chip is selected. [...]
selectedColor Color
Color to be used for the chip's background, indicating that it is selected. [...]
tooltip → String
Tooltip string to be used for the body area (where the label and avatar are) of the chip.
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator. [...]