chore: Fix some spelling errors (#2146)

This commit is contained in:
Pasha Stetsenko
2022-11-05 04:17:48 -07:00
committed by GitHub
parent 2a3b8998bf
commit 4bf9563013
18 changed files with 174 additions and 78 deletions

View File

@ -259,19 +259,19 @@ class ParticlesExample extends FlameGame {
}
/// Particle which is used in example below
Particle? reusablePatricle;
Particle? reusableParticle;
/// A burst of white circles which actually using a single circle
/// as a form of optimization. Look for reusing parts of particle effects
/// whenever possible, as there are limits which are relatively easy to reach.
Particle reuseParticles() {
reusablePatricle ??= circle();
reusableParticle ??= circle();
return Particle.generate(
generator: (i) => MovingParticle(
curve: Interval(rnd.nextDouble() * .1, rnd.nextDouble() * .8 + .1),
to: randomCellVector2()..scale(.5),
child: reusablePatricle!,
child: reusableParticle!,
),
);
}