customTextMediumStyle static method

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

Implementation

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