name property

String get name

Gets the theme name string corresponding to the enum value.

Implementation

String get name {
  switch (this) {
    case ChartThemeMode.light:
      return 'light';
    case ChartThemeMode.dark:
      return 'dark';
  }
}