text property

TextStyle get text

Creates a base TextStyle with the specified font size.

Example:

Text('Hello World', style: 16.text)

Implementation

TextStyle get text => TextStyle(fontSize: toDouble());