TChip.tonal constructor

const TChip.tonal({
  1. Key? key,
  2. String? text,
  3. dynamic icon,
  4. Widget? trailing,
  5. Color? color,
  6. Color? background,
  7. Color? textColor,
  8. VoidCallback? onTap,
  9. EdgeInsets? padding,
  10. BorderRadius? borderRadius,
  11. 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;