addParticle abstract method

void addParticle(
  1. Particle particle, {
  2. Vector2? position,
  3. Vector2? size,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. int? priority = LayerPriority.MAP + 1,
})

Used to add particles in game.

Implementation

void addParticle(
  Particle particle, {
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority = LayerPriority.MAP + 1,
});