colorHex method

String colorHex()

Generate random color hex.

Implementation

String colorHex() {
  const letters = "0123456789ABCDEF";

  String color = "#";

  for (var i = 0; i < 6; i++) {
    color += letters[numeric(letters.length)];
  }

  return color;
}