SpriteAnimationComponent constructor

SpriteAnimationComponent({
  1. SpriteAnimation? animation,
  2. bool? autoResize,
  3. bool removeOnFinish = false,
  4. bool playing = true,
  5. bool resetOnRemove = false,
  6. Paint? paint,
  7. Vector2? position,
  8. Vector2? size,
  9. Vector2? scale,
  10. double? angle,
  11. double nativeAngle = 0,
  12. Anchor? anchor,
  13. Iterable<Component>? children,
  14. int? priority,
  15. ComponentKey? key,
})

Creates a component with an empty animation which can be set later