xStyleText static method

TextStyle xStyleText({
  1. Color? colorText,
  2. double? fontSize,
  3. bool? activeBold = false,
  4. double? letterSpacing,
  5. TextOverflow? overflow,
})

Implementation

static TextStyle xStyleText({Color? colorText, double? fontSize, bool? activeBold = false, double? letterSpacing, TextOverflow? overflow}) {
  var res = GoogleFonts.getFont(
    googleFontFamily,
    textStyle: TextStyle(
      color: colorText,
      fontSize: fontSize,
      fontWeight: activeBold == false ? null : FontWeight.bold,
      letterSpacing: letterSpacing ?? 0,
      overflow: overflow,
    ),
  );
  return res;
}