getAnimation method
Implementation
SpriteAnimation getAnimation({
required Vector2 size,
required int amount,
Vector2? position,
double stepTime = 0.1,
bool loop = true,
}) {
return SpriteAnimation.fromFrameData(
this,
SpriteAnimationData.sequenced(
amount: amount,
stepTime: stepTime,
textureSize: size,
loop: loop,
texturePosition: position,
),
);
}