OudsSuggestionChip.icon constructor
- Key? key,
- String? label,
- OudsIcon? icon,
- 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;