SpriteSheet(BitmapData source, int width, int height)

Source

SpriteSheet(this.source, this.width, this.height) {
  frames = source.sliceIntoFrames(width, height);
}