controllerOf static method
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);
}