hex property

String hex

Return color's uppercase RGB hex string, excluding alpha channel.

Implementation

String get hex {
  return value.toRadixString(16).toUpperCase().padLeft(8, '0').substring(2);
}