chore: format /components/particles files

This commit is contained in:
Ivan Cherepanov
2019-11-25 18:18:52 +03:00
parent 53e8aba3d6
commit a49e9b7494
8 changed files with 28 additions and 22 deletions

View File

@ -16,12 +16,11 @@ typedef ParticleGenerator = Particle Function(int);
/// some particular behavior which then could be nested and combined together
/// to create specifically required experience.
abstract class Particle extends Component {
/// Generates given amount of particles,
/// combining them into one [ComposedParticle]
/// Useful for procedural particle generation.
static Particle generate({
int count = 10,
int count = 10,
@required ParticleGenerator generator,
double lifespan,
Duration duration,
@ -32,7 +31,7 @@ abstract class Particle extends Component {
children: List<Particle>.generate(count, generator),
);
}
Timer _timer;
bool _shouldBeDestroyed = false;