withColor method

Text withColor(
  1. Color color
)

Implementation

Text withColor(Color color) => Text(
      data ?? '',
      key: key,
      style: (style ?? const TextStyle()).copyWith(color: color),
      strutStyle: strutStyle,
      textAlign: textAlign,
      textDirection: textDirection,
      locale: locale,
      softWrap: softWrap,
      overflow: overflow,
      textScaleFactor: textScaleFactor,
      maxLines: maxLines,
      semanticsLabel: semanticsLabel,
      textWidthBasis: textWidthBasis,
      textHeightBehavior: textHeightBehavior,
      selectionColor: selectionColor,
      semanticsIdentifier: semanticsIdentifier,
      textScaler: textScaler,
    );