generateTextStyle method

TextStyle generateTextStyle()

Implementation

TextStyle generateTextStyle() {
  return TextStyle(
    backgroundColor: backgroundColor,
    color: color,
    decoration: textDecoration,
    decorationColor: textDecorationColor,
    decorationStyle: textDecorationStyle,
    decorationThickness: textDecorationThickness,
    fontFamily: fontFamily,
    fontFamilyFallback: fontFamilyFallback,
    fontFeatures: fontFeatureSettings,
    fontSize: fontSize?.size,
    fontStyle: fontStyle,
    fontWeight: fontWeight,
    letterSpacing: letterSpacing,
    shadows: textShadow,
    wordSpacing: wordSpacing,
    height: lineHeight?.size ?? 1.0,
    //TODO background
    //TODO textBaseline
  );
}