randomColor static method

Color randomColor(
  1. {double saturation = 0.6,
  2. double brightness = 0.75}
)

Implementation

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