Particle.atPosition constructor
Implementation
factory Particle.atPosition(Offset pos, Random random) {
return Particle(
position: pos,
velocity:
Offset(random.nextDouble() - 0.5, random.nextDouble() - 0.5) * 0.5,
life: 1.0,
);
}