withColor method

TextStyle? withColor(
  1. Color? color
)

set the color of this TextStyle to color

Implementation

TextStyle? withColor(Color? color) {
  return this?.copyWith(color: color);
}