toHexColor method

int toHexColor()

Implementation

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