toHex method

String toHex()

Implementation

String toHex() {
  return '#${_toHex(r)}${_toHex(g)}${_toHex(b)}${_toHex(a)}'.toUpperCase();
}