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