getRandomColors method
Implementation
Color? getRandomColors() {
List<Color>? randomColors = [
Colors.purple,
Colors.red,
Colors.green,
Colors.blue,
Colors.amber,
Colors.pink,
Colors.brown,
Colors.grey,
Colors.lightBlue,
Colors.indigo,
Colors.yellow
];
return randomColors[Random().nextInt(randomColors.length)];
}