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 default_light_theme) standard dark themeName (id is default_dark_theme)

Implementation

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