customTextDefaultStyle static method

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

Implementation

static TextStyle customTextDefaultStyle({Color? color = ThemeColors.textColor, String? fontName, double? textSize, FontWeight? fontWeight}) {
  return GoogleFonts.getFont(fontName ?? prefsHelper.getFontName(), color: color, fontWeight: fontWeight ?? _regular, fontSize: textSize ?? Sizes.textSizeDefault, fontStyle: FontStyle.normal);
}