getColor method

Color getColor(
  1. int colorCode,
  2. bool foreground
)

Implementation

Color getColor(int colorCode, bool foreground) {
  switch (colorCode) {
    case 0:
      return foreground ? Colors.black : Colors.transparent;
    case 12:
      return dark ? Colors.lightBlue : Colors.indigo;
    case 208:
      return dark ? Colors.orange : Colors.orange;
    case 196:
      return dark ? Colors.red : Colors.red;
    case 199:
      return dark ? Colors.pink : Colors.pink;
    default:
      return Colors.transparent;
  }
}