OudsSuggestionChip.icon constructor

const OudsSuggestionChip.icon({
  1. Key? key,
  2. String? label,
  3. OudsIcon? icon,
  4. VoidCallback? onPressed,
})

Creates an OudsSuggestionChip with a text and an icon.

Use this constructor to display an icon alongside the label. If only an icon is provided (without a label), it acts as an icon-only chip.

Implementation

const OudsSuggestionChip.icon({
  super.key,
  this.label,
  this.icon,
  this.onPressed,
}) : avatar = null,
     contentDescription = null;