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