Timecode constructor
Timecode({
- TimecodeFramerate? framerate,
- int startFrames = 0,
Creates a new Timecode instance.
@parameters:
framerate
a TimecodeFramerate instance.
startFrames
: Optional starting offset in frames. Use this to force the
timecode to start at a specific frame value (in real frames).
Implementation
Timecode({
TimecodeFramerate? framerate,
int startFrames = 0,
}) : framerate = framerate ?? TimecodeFramerate(defaultFPS) {
startingFrame = _frameCount = startFrames;
_recomputeParts();
}