onParticleExpired property

void Function(Particle particle)? onParticleExpired
final

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;