getThemeType function
- String type
Implementation
ThemeType getThemeType(String type) {
Map<String, ThemeType> themeTypeMapping = {
'White': ThemeType.WHITE,
'Green': ThemeType.GREEN,
'Pink': ThemeType.PINK,
'Dark': ThemeType.DARK,
};
return themeTypeMapping[type];
}