color2hex static method

String color2hex(
  1. Color color
)

Converts a Flutter Color object to a hex string.

Returns a string representing the hex value. ffffffff

Implementation

static String color2hex(Color color) {
  return rgb2hex(color.red, color.green, color.blue);
}