hex property

String get hex

Implementation

String get hex {
  String two(int n) => n.toRadixString(16).padLeft(2, '0').toUpperCase();
  return '${two(a)}${two(r)}${two(g)}${two(b)}';
}