OudsFilterChip constructor

const OudsFilterChip({
  1. Key? key,
  2. String? label,
  3. @Deprecated("This parameter is deprecated and will be removed in a future version. Use icon instead in OudsFilterChip.icon constructor .") String? avatar,
  4. bool selected = false,
  5. ValueChanged<bool>? onSelected,
})

Creates a text-only OudsFilterChip.

This is the default constructor. The label parameter must be provided to display the text.

Implementation

const OudsFilterChip({
  super.key,
  this.label,
  @Deprecated(
    "This parameter is deprecated and will be removed in a future version. Use icon instead in OudsFilterChip.icon constructor .",
  )
  this.avatar,
  this.selected = false,
  this.onSelected,
}) : contentDescription = null,
     icon = null;