fromFrames static method

Duration fromFrames(
  1. int frames,
  2. double fps
)

Reconstruct from frame count.

Implementation

static Duration fromFrames(int frames, double fps) =>
    Duration(milliseconds: (frames / fps * 1000).round());