colorHex method
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;
}
Generate random color hex.
String colorHex() {
const letters = "0123456789ABCDEF";
String color = "#";
for (var i = 0; i < 6; i++) {
color += letters[numeric(letters.length)];
}
return color;
}