getRGB static method
Implementation
static int getRGB(String c) {
String str = c.replaceAll('rgb(', '').replaceAll(')', '');
List<String> split = str.split(',');
double r = double.parse(split[0]);
double g = double.parse(split[1]);
double b = double.parse(split[2]);
return getArgb(1.0, r.toInt(), g.toInt(), b.toInt());
}