TBadge constructor

const TBadge({
  1. Key? key,
  2. required String label,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. double radius = 8,
})

Default primary badge constructor.

Implementation

const TBadge({
  Key? key,
  required String label,
  Color? backgroundColor,
  Color? textColor,
  double radius = 8,
}) : this._(
        label: label,
        backgroundColor: backgroundColor,
        textColor: textColor,
        badgeType: TBadgeType.raw,
        radius: radius,
      );