toHexColor method
Implementation
int toHexColor() {
String string = this.toUpperCase().replaceAll("#", "");
if (string.length == 6) {
string = "FF" + string;
}
return int.parse(string, radix: 16);
}
int toHexColor() {
String string = this.toUpperCase().replaceAll("#", "");
if (string.length == 6) {
string = "FF" + string;
}
return int.parse(string, radix: 16);
}