nextColor method

Color nextColor()

Returns a random color with 1.0 opacity and RGB values between 0 and 255.

Implementation

Color nextColor() {
  return Color.fromARGB(
    255,
    nextIntBetween(0, 256),
    nextIntBetween(0, 256),
    nextIntBetween(0, 256),
  );
}