SpriteAnimationGroupComponent<T> constructor
SpriteAnimationGroupComponent<T> ({})
Creates a component with an empty animation which can be set later
Implementation
SpriteAnimationGroupComponent({
this.animations,
this.current,
Map<T, bool>? removeOnFinish,
Paint? paint,
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
int? priority,
}) : removeOnFinish = removeOnFinish ?? const {},
super(
position: position,
size: size,
scale: scale,
angle: angle,
anchor: anchor,
priority: priority,
) {
if (paint != null) {
this.paint = paint;
}
}