getRandomLightColor function

Color getRandomLightColor()

Generates a random color

Implementation

Color getRandomLightColor() {
  final Random random = Random();
  // Generate random RGB values between 128 and 255 to ensure light colors
  int red = 128 + random.nextInt(128); // 128-255
  int green = 128 + random.nextInt(128); // 128-255
  int blue = 128 + random.nextInt(128); // 128-255
  return Color.fromARGB(255, red, green, blue);
}