ChipAttributes class Null safety
An interface defining the base attributes for a Material Design chip.
Chips are compact elements that represent an attribute, text, entity, or action.
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:
- Chip, a chip that displays information and can be deleted.
- 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.
- ActionChip, represents an action related to primary content.
- material.io/design/components/chips.html
- Implementers
Properties
- autofocus → bool
-
True if this widget will be selected as the initial focus when no other
node in its scope is currently focused.
read-only
- avatar → Widget?
-
A widget to display prior to the chip's label.
read-only
- backgroundColor → Color?
-
Color to be used for the unselected, enabled chip's background.
read-only
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
read-only
- elevation → double?
-
Elevation to be applied on the chip relative to its parent.
read-only
- focusNode → FocusNode?
-
An optional focus node to use as the focus node for this widget.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- iconTheme → IconThemeData?
-
Theme used for all icons in the chip.
read-only
- label → Widget
-
The primary content of the chip.
read-only
- labelPadding → EdgeInsetsGeometry?
-
The padding around the label widget.
read-only
- labelStyle → TextStyle?
-
The style to be applied to the chip's label.
read-only
- materialTapTargetSize → MaterialTapTargetSize?
-
Configures the minimum size of the tap target.
read-only
- padding → EdgeInsetsGeometry?
-
The padding between the contents of the chip and the outside shape.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shadowColor → Color?
-
Color of the chip's shadow when the elevation is greater than 0.
read-only
- shape → OutlinedBorder?
-
The OutlinedBorder to draw around the chip.
read-only
- side → BorderSide?
-
The color and weight of the chip's outline.
read-only
- surfaceTintColor → Color?
-
Color of the chip's surface tint overlay when its elevation is
greater than 0.
read-only
- visualDensity → VisualDensity?
-
Defines how compact the chip's layout will be.
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited