FlipBook(List<BitmapData> bitmapDatas, [ int frameRate = 30, bool loop = true ])

Source

FlipBook(List<BitmapData> bitmapDatas, [
    int frameRate = 30, bool loop = true]) {

  _bitmapDatas = bitmapDatas;
  _frameDurations = new List.filled(_bitmapDatas.length, 1.0 / frameRate);

  _currentFrame = 0;
  _frameTime = null;
  _play = false;
  _loop = loop;
  _progressEvent = new Event(Event.PROGRESS);
  _completeEvent = new Event(Event.COMPLETE);
}