SpriteParticle constructor

SpriteParticle({
  1. required Sprite sprite,
  2. Vector2? position,
  3. Vector2? size,
  4. Anchor anchor = Anchor.center,
  5. Paint? overridePaint,
  6. double? lifespan,
})

Implementation

SpriteParticle({
  required this.sprite,
  this.position,
  this.size,
  this.anchor = Anchor.center,
  this.overridePaint,
  super.lifespan,
});