parseColor static method
Implementation
static Color parseColor(String color) {
final QColorModel colorModel = colorList.firstWhere(
(element) => element.name == color.toLowerCase().replaceAll('-', ''),
orElse: () {
return QColorModel(name: 'real', color: teal);
});
return colorModel.color;
}