controllerOf static method

ThemeController controllerOf(
  1. BuildContext context
)

Gives reference to a ThemeCommand of the nearest ThemeProvider up the widget tree and will provide commands to change the theme.

Implementation

static ThemeController controllerOf(BuildContext context) {
  return InheritedThemeController.of(context);
}