toHex method

String toHex ()

Implementation

String toHex() {
  return "#" + int.parse("${this.value}").toRadixString(16);
}