TextBadge.theme constructor
TextBadge.theme(
- TextBadgeTheme theme, {
- Key? key,
- required String text,
- double? fontSize,
- Widget? rightWidget,
- 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);