colorHex6 property
String
get
colorHex6
Returns 6-character hex string (RRGGBB) for XML compatibility (mostly charts)
Implementation
String get colorHex6 {
final hex = colorHex;
if (hex == 'none') return 'none';
if (hex.length >= 6) {
return hex.substring(hex.length - 6);
}
return hex.padLeft(6, '0');
}