color method

Text color(
  1. Color? color
)

A modifier that sets its Text's color.

Example:

Text('Hello, World!')
    .color(Colors.red);

Implementation

Text color(Color? color) {
  return this._rebase(
    style: FlutterUITextStyle.rebase(this.style, color: color),
  );
}