textStyle method
TextStyle
textStyle({
- double? fontSize,
- FontWeight? fontWeight,
- Color? color,
- double? letterSpacing,
- double? height,
Get text style with theme defaults applied.
Implementation
TextStyle textStyle({
double? fontSize,
FontWeight? fontWeight,
Color? color,
double? letterSpacing,
double? height,
}) {
return TextStyle(
fontFamily: fontFamily,
fontSize: fontSize ?? fontSizeBase,
fontWeight: fontWeight ?? fontWeightRegular,
color: color ?? textColor,
letterSpacing: letterSpacing ?? this.letterSpacing,
height: height ?? lineHeight,
);
}