OudsFilterChip.icon constructor

const OudsFilterChip.icon({
  1. Key? key,
  2. String? label,
  3. OudsIcon? icon,
  4. bool selected = false,
  5. ValueChanged<bool>? onSelected,
  6. String? contentDescription,
})

Creates an OudsFilterChip 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 OudsFilterChip.icon({
  super.key,
  this.label,
  this.icon,
  this.selected = false,
  this.onSelected,
  this.contentDescription,
}) : avatar = null;