themeToString function
Function to convert Theme enum to corresponding string values.
Implementation
String themeToString(Theme? theme) {
switch (theme) {
case Theme.light:
return "Light";
case Theme.dark:
return "Dark";
case Theme.minimal:
return "Minimal";
case Theme.flatMinimal:
return "FlatMinimal";
default:
return "default";
}
}