currentFrame property

int get currentFrame

Current drawing frame index of videoItem, returns 0 if videoItem is null.

Implementation

int get currentFrame {
  final videoItem = _videoItem;
  if (videoItem == null) return 0;
  return min(
    videoItem.params.frames - 1,
    max(0, (videoItem.params.frames.toDouble() * value).toInt()),
  );
}