getHexString method

String getHexString([
  1. String colorSpace = SRGBColorSpace
])

Implementation

String getHexString([ String colorSpace = SRGBColorSpace ]) {
  String _str = ('000000' + getHex().toRadixString(16));
  return _str.substring(_str.length - 6);
}