TChip.tonal constructor
const
TChip.tonal({
- Key? key,
- String? text,
- dynamic icon,
- Widget? trailing,
- Color? color,
- Color? background,
- Color? textColor,
- VoidCallback? onTap,
- EdgeInsets? padding,
- BorderRadius? borderRadius,
- TSize size = TChipSize.md,
Creates a tonal (tinted background) chip.
Implementation
const TChip.tonal({
super.key,
this.text,
this.icon,
this.trailing,
this.color,
this.background,
this.textColor,
this.onTap,
this.padding,
this.borderRadius,
this.size = TChipSize.md,
}) : type = TVariant.tonal;