SpriteAnimation constructor

SpriteAnimation(
  1. List<SpriteAnimationFrame> frames, {
  2. bool loop = true,
})

Creates an animation given a list of frames.

Implementation

SpriteAnimation(this.frames, {this.loop = true});