kill method

void kill()

Immediately stops the effect and clears all particles, marking it as killed.

Implementation

void kill() {
  stop(cancel: true);
  postEffectCallback = null;
  _killPending = true;
}