primaryOf static method
- BuildContext context
The ThemeData.primaryTextTheme property of the ambient Theme.
Equivalent to Theme.of(context).primaryTextTheme
.
See also:
- TextTheme.of, which returns the ThemeData.textTheme property of the ambient Theme instead.
Implementation
static TextTheme primaryOf(BuildContext context) => Theme.of(context).primaryTextTheme;