setThemes method
Configures theme data for different theme modes.
Only ThemeMode.light and ThemeMode.dark need entries; the service resolves ThemeMode.system to one of these two via currentMode before lookup.
Example:
themeService.setThemes({
ThemeMode.light: ThemeData.light(),
ThemeMode.dark: ThemeData.dark(),
});
Implementation
void setThemes(Map<ThemeMode, ThemeData> themes) {
_themeMap.addAll(themes);
}