Particle constructor

Particle({
  1. double? lifespan,
})

Construct a new Particle.

The lifespan is how long this Particle will live in seconds, with microsecond precision.

Implementation

Particle({
  double? lifespan,
}) {
  setLifespan(lifespan ?? 0.5);
}