saveAll static method

void saveAll(
  1. Map<dynamic, Map<ThemeRef, Object>> themesByKey
)

Saves a map of themes by key. Example:

final Map<Key, Map<ThemeRef, Object>> myThemes = {
  Keys.light: lightTheme,
  Keys.dark: darkTheme,
};

Themed.saveAll(myThemes);

See setThemeByKey to understand how to use the saved themes.

Implementation

static void saveAll(Map<dynamic, Map<ThemeRef, Object>> themesByKey) {
  themesByKey.forEach((key, value) => Themed.save(key: key, theme: value));
}