Skip to content

Commit

Permalink
adds stepTime in toAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed May 29, 2024
1 parent 8c2ce75 commit fd6a585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/extensions/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ extension RectExt on Rect {
}

extension SpriteFutureExt on Future<Sprite> {
Future<SpriteAnimation> toAnimation() async {
Future<SpriteAnimation> toAnimation({double stepTime = 1}) async {
var sprite = await this;
return SpriteAnimation.spriteList([sprite], stepTime: 1);
return SpriteAnimation.spriteList([sprite], stepTime: stepTime);
}
}

Expand Down

0 comments on commit fd6a585

Please sign in to comment.