OudsSuggestionChip constructor

const OudsSuggestionChip({
  1. Key? key,
  2. String? label,
  3. @Deprecated("This parameter is deprecated and will be removed in a future version. Use icon instead in OudsSuggestionChip.icon constructor .") String? avatar,
  4. @Deprecated("This parameter is deprecated and will be removed in a future version. Use icon.semanticsLabel instead in OudsSuggestionChip.icon constructor .") String? contentDescription,
  5. VoidCallback? onPressed,
})

Creates a text-only OudsSuggestionChip.

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

Implementation

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