) : assert(color == null || foreground == null,
       &#39;Cannot provide both a color and a foreground\n&#39;
       &#39;The color argument is just a shorthand for &quot;foreground: new Paint()..color = color&quot;.&#39;
     ),
     _encoded = _encodeTextStyle(
       color,
       decoration,
       decorationColor,
       decorationStyle,
       fontWeight,
       fontStyle,
       textBaseline,
       fontFamily,
       fontFamilyFallback,
       fontSize,
       letterSpacing,
       wordSpacing,
  