TextBadge.theme constructor

TextBadge.theme(
  1. TextBadgeTheme theme, {
  2. Key? key,
  3. required String text,
  4. double? fontSize,
  5. Widget? rightWidget,
  6. void onTap()?,
})

Implementation

TextBadge.theme(
  TextBadgeTheme theme, {
  super.key,
  required this.text,
  double? fontSize,
  this.rightWidget,
  this.onTap,
})  : backgroundColor = theme.backgroundColor,
      textColor = theme.textColor,
      fontSize = fontSize ?? theme.fontSize,
      borderRadius = theme.borderRadius,
      verticalPadding = theme.verticalPadding,
      horizontalPadding = theme.horizontalPadding,
      boder = theme.borderWidth == null
          ? null
          : Border.all(width: theme.borderWidth!, color: theme.borderColor);