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