boldTextStyle static method
TextStyle
boldTextStyle({
- int? size,
- Color? color,
- FontWeight? weight,
- String? fontFamily,
- double? letterSpacing,
- FontStyle? fontStyle,
- double? wordSpacing,
- TextDecoration? decoration,
- TextDecorationStyle? textDecorationStyle,
- TextBaseline? textBaseline,
- Color? decorationColor,
- Color? backgroundColor,
- double? height,
Styles
Implementation
// Bold Text Style
static TextStyle boldTextStyle({
int? size,
Color? color,
FontWeight? weight,
String? fontFamily,
double? letterSpacing,
FontStyle? fontStyle,
double? wordSpacing,
TextDecoration? decoration,
TextDecorationStyle? textDecorationStyle,
TextBaseline? textBaseline,
Color? decorationColor,
Color? backgroundColor,
double? height,
}) {
return TextStyle(
fontSize: size != null ? size.toDouble() : hcTextBoldSizeGlobal,
color: color ?? hcTextPrimaryColorGlobal,
fontWeight: weight ?? hcFontWeightBoldGlobal,
fontFamily: fontFamily ?? hcFontFamilyBoldGlobal,
letterSpacing: letterSpacing,
fontStyle: fontStyle,
decoration: decoration,
decorationStyle: textDecorationStyle,
decorationColor: decorationColor,
wordSpacing: wordSpacing,
textBaseline: textBaseline,
backgroundColor: backgroundColor,
height: height,
);
}