colorToHex function

String colorToHex(
  1. Color color
)

Implementation

String colorToHex(Color color) {
  return color.value.toRadixString(16).padLeft(8, '0').toUpperCase();
}