getColor method

String getColor(
  1. Color color
)

Implementation

String getColor(Color color) {
  String l1 = color.toString().split('0x')[1];
  l1 = l1.replaceAll(')', '');
  l1 = l1.substring(2);
  return l1;
}