SpriteAnimationParticle constructor

SpriteAnimationParticle({
  1. required SpriteAnimation animation,
  2. Vector2? position,
  3. Vector2? size,
  4. Anchor anchor = Anchor.center,
  5. Paint? overridePaint,
  6. double? lifespan,
  7. bool alignAnimationTime = true,
})

Implementation

SpriteAnimationParticle({
  required this.animation,
  this.position,
  this.size,
  this.anchor = Anchor.center,
  this.overridePaint,
  super.lifespan,
  this.alignAnimationTime = true,
}) : animationTicker = animation.createTicker();