toHex method

String toHex()

Converts a Flutter Color object to a hex string.

Returns a string representing the hex value. ffffffff

Implementation

String toHex() {
  return ColorConverter.color2hex(this);
}