themeOf static method

AppTheme themeOf(
  1. BuildContext context
)

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;
}