RotatingPlanetsCounter constructor

RotatingPlanetsCounter({
  1. required List<Color> initialColors,
  2. required int initialCounter,
  3. BlendMode blend = BlendMode.hardLight,
})

Implementation

RotatingPlanetsCounter(
    {required List<Color> initialColors,
    required int initialCounter,
    BlendMode blend = BlendMode.hardLight}) {
  _counter = initialCounter;
  _colors = initialColors;
  _blend = blend;

  for (int i = 0; i < _counter!; i++) {
    _radii.add(_random.nextInt(20) + 10.0);
  }
}