ParticleBurst class Particles

A one-off (or repeating) burst of particles scheduled at a point in the emitter's run.

At system time time the spawner emits count particles at once. With a positive interval the burst repeats every interval seconds (the first at time) for cycles occurrences, or forever when cycles is null; a non-positive interval is a single shot. Burst times are absolute on the system clock.

Constructors

ParticleBurst({required double time, required int count, double interval = 0.0, int? cycles})
Creates a burst of count particles at time, optionally repeating.
const

Properties

count → int
How many particles each occurrence emits.
final
cycles → int?
The number of occurrences when repeating, or null to repeat forever (only meaningful when interval is positive).
final
hashCode → int
The hash code for this object.
no setterinherited
interval → double
Seconds between occurrences; non-positive means a single shot.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time → double
The system time (seconds) of the first occurrence.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited