asTextStyle method

TextStyle asTextStyle()

Implementation

TextStyle asTextStyle() {
  return TextStyle(
    color: color,
    fontFamily: fontFamily,
    fontSize: fontSize! * (fontScale ?? 1.0),
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    letterSpacing: letterSpacing,
    wordSpacing: wordSpacing,
    height: height,
    leadingDistribution: leadingDistribution,
    shadows: shadows,
    fontFeatures: fontFeatures,
    fontVariations: fontVariations,
    decoration: decoration,
    decorationColor: decorationColor,
    decorationStyle: decorationStyle,
    decorationThickness: decorationThickness,
    background: background,
    foreground: foreground,
  );
}