RotatingBubblesCounter constructor

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

Implementation

RotatingBubblesCounter(
    {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(25) + 12.5);
  }
}