foregroundColor method

Widget foregroundColor(
  1. Color color
)

Changes the TextStyle.color for this widget

Implementation

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