generateParticleLayer method

  1. @override
ParticleLayer<Particle> generateParticleLayer(
  1. double x,
  2. double y
)
override

Implementation

@override
ParticleLayer<Particle> generateParticleLayer(double x, double y) {
  final layer = RainbowParticleLayer(x, y, oldX ?? x, oldY ?? y);
  oldX = x;
  oldY = y;

  return layer;
}