onParticleExpired property
Called when a particle's lifetime expires, before it is respawned/recycled. Lets the caller swap out particle state (e.g. a new image) for reuse.
Implementation
final void Function(Particle particle)? onParticleExpired;
Called when a particle's lifetime expires, before it is respawned/recycled. Lets the caller swap out particle state (e.g. a new image) for reuse.
final void Function(Particle particle)? onParticleExpired;