textStyle method

TextStyle textStyle({
  1. double? fontSize,
  2. FontWeight? fontWeight,
  3. Color? color,
  4. double? letterSpacing,
  5. 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,
  );
}