boldTextStyle static method

TextStyle boldTextStyle({
  1. int? size,
  2. Color? color,
  3. FontWeight? weight,
  4. String? fontFamily,
  5. double? letterSpacing,
  6. FontStyle? fontStyle,
  7. double? wordSpacing,
  8. TextDecoration? decoration,
  9. TextDecorationStyle? textDecorationStyle,
  10. TextBaseline? textBaseline,
  11. Color? decorationColor,
  12. Color? backgroundColor,
  13. 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,
  );
}