getThemeColor function

Color getThemeColor (
  1. ThemeType type
)

Implementation

Color getThemeColor(ThemeType type) {
  Map<ThemeType, Color> themeColorMapping = {
    ThemeType.WHITE: Colors.white,
    ThemeType.GREEN: Colors.green,
    ThemeType.PINK: Colors.pink,
    ThemeType.DARK: Colors.black,
  };
  return themeColorMapping[type];
}