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