textStyle method

TextStyle textStyle(
  1. double fontSize
)

Creates a TextStyle with this color and specified font size.

Example:

Text('Colored text', style: Colors.blue.textStyle(16))

Implementation

TextStyle textStyle(double fontSize) =>
    TextStyle(fontSize: fontSize, color: this);