set static method

dynamic set(
  1. BuildContext context, {
  2. required String id,
})

Changes the current theme to the new theme standard light themeName (id is "light_theme") standard dark themeName (id is "dark_theme")

Implementation

static set(BuildContext context, {required String id}) {
  ThemeProvider.controllerOf(context).setTheme(id);
}