generateRandomColors method

List<Color> generateRandomColors()

generate random colors based on the give line colors

Implementation

List<Color> generateRandomColors() {
  Random random = Random();
  int index =
      random.nextInt(widget.lineDecoration!.lineGradientColors.length);
  return widget.lineDecoration!.lineGradientColors[index];
}