textStyle method

T textStyle(
  1. TextStyle? style
)

Implementation

T textStyle(TextStyle? style) => this.copyWith(
      style: (this.style ?? TextStyle()).copyWith(
        background: style?.background,
        backgroundColor: style?.backgroundColor,
        color: style?.color,
        debugLabel: style?.debugLabel,
        decoration: style?.decoration,
        decorationColor: style?.decorationColor,
        decorationStyle: style?.decorationStyle,
        decorationThickness: style?.decorationThickness,
        fontFamily: style?.fontFamily,
        fontFamilyFallback: style?.fontFamilyFallback,
        fontFeatures: style?.fontFeatures,
        fontSize: style?.fontSize,
        fontStyle: style?.fontStyle,
        fontWeight: style?.fontWeight,
        foreground: style?.foreground,
        height: style?.height,
        inherit: style?.inherit,
        letterSpacing: style?.letterSpacing,
        locale: style?.locale,
        shadows: style?.shadows,
        textBaseline: style?.textBaseline,
        wordSpacing: style?.wordSpacing,
      ),
    ) as T;