h2 static method
TextStyle
h2(
{ - TextStyle? textStyle,
- int fontWeight = 500,
- bool muted = false,
- bool xMuted = false,
- double? letterSpacing,
- Color? color,
- TextDecoration decoration = TextDecoration.none,
- double? height,
- double wordSpacing = 0,
- double? fontSize,
})
Implementation
static TextStyle h2(
{TextStyle? textStyle,
int fontWeight = 500,
bool muted = false,
bool xMuted = false,
double? letterSpacing,
Color? color,
TextDecoration decoration = TextDecoration.none,
double? height,
double wordSpacing = 0,
double? fontSize}) {
return getStyle(
fontSize: fontSize ?? _defaultTextSize[FxTextType.h2],
color: color,
height: height,
muted: muted,
letterSpacing:
letterSpacing ?? _defaultLetterSpacing[FxTextType.h2] ?? -0.15,
fontWeight: _defaultTextFontWeight[FxTextType.h2] ?? 500,
decoration: decoration,
textStyle: textStyle,
wordSpacing: wordSpacing,
xMuted: xMuted);
}