getColorByKey method

Color? getColorByKey(
  1. String key
)

Implementation

Color? getColorByKey(String key) {
  switch (key) {
    case "red":
      return red;
    case "green":
      return green;
    case "orange":
      return orange;
    case "brightBlue":
      return brightBlue;
    case "neutralLines":
      return neutralWhite;
  }
  return blue;
}