xStyleText static method
TextStyle
xStyleText({
- Color? colorText,
- double? fontSize,
- bool? activeBold = false,
- double? letterSpacing,
- 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;
}