themeToString function

String themeToString(
  1. Theme? theme
)

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";
  }
}