randomColor static method
Implementation
static Color randomColor({double saturation = 0.6, double brightness = 0.75}) {
double hue = random.nextDouble();
return HSVColor.fromAHSV(1.0, hue * 360.0, saturation, brightness).toColor();
}
static Color randomColor({double saturation = 0.6, double brightness = 0.75}) {
double hue = random.nextDouble();
return HSVColor.fromAHSV(1.0, hue * 360.0, saturation, brightness).toColor();
}