customTextDefaultBoldStyle static method

TextStyle customTextDefaultBoldStyle({
  1. Color? color = SharingColors.textColor,
  2. String? fontName,
  3. double? textSize,
  4. FontWeight? fontWeight,
})

Implementation

static TextStyle customTextDefaultBoldStyle(
    {Color? color = SharingColors.textColor,
    String? fontName,
    double? textSize,
    FontWeight? fontWeight}) {
  return GoogleFonts.getFont(fontName ?? prefsHelper.getFontName(),
      color: color,
      fontWeight: fontWeight ?? FontWeight.bold,
      fontSize: textSize ?? Sizes.TEXT_SIZE_14,
      fontStyle: FontStyle.normal);
}