SpriteAnimationComponent constructor
SpriteAnimationComponent({})
Creates a component with an empty animation which can be set later
Implementation
SpriteAnimationComponent({
this.animation,
bool? removeOnFinish,
bool? playing,
Paint? paint,
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
int? priority,
}) : removeOnFinish = removeOnFinish ?? false,
playing = playing ?? true,
super(
position: position,
size: size,
scale: scale,
angle: angle,
anchor: anchor,
priority: priority,
) {
if (paint != null) {
this.paint = paint;
}
}