FlipbookModule constructor

const FlipbookModule({
  1. required int frameCount,
  2. double? framesPerSecond,
  3. bool randomStartFrame = false,
})

Creates a flipbook animator over frameCount cells.

Implementation

const FlipbookModule({
  required this.frameCount,
  this.framesPerSecond,
  this.randomStartFrame = false,
}) : assert(frameCount > 0),
     assert(framesPerSecond == null || framesPerSecond > 0);