themeOf static method
Returns the current app theme passed by the nearest ThemeProvider up the widget tree.
Use as ThemeProvider.themeOf(context).data
to get ThemeData.
Implementation
static AppTheme themeOf(BuildContext context) {
return controllerOf(context).theme;
}