colorToHex method

String colorToHex(
  1. Color color
)

Implementation

String colorToHex(Color color) {
  return '#${color.value.toRadixString(16).substring(2)}'.toUpperCase();
}