foregroundColor method

Widget foregroundColor(
  1. Color color
)

Changes the widget's textStyle to use this color.

Implementation

Widget foregroundColor(Color color) {
  return DefaultTextStyle(
    style: TextStyle(color: color),
    child: this,
  );
}