isVideoFinished method

bool isVideoFinished(
  1. VideoPlayerValue? videoPlayerValue
)

Implementation

bool isVideoFinished(VideoPlayerValue? videoPlayerValue) {
  return videoPlayerValue?.position != null &&
      videoPlayerValue?.duration != null &&
      videoPlayerValue!.position.inMilliseconds != 0 &&
      videoPlayerValue.duration!.inMilliseconds != 0 &&
      videoPlayerValue.position >= videoPlayerValue.duration!;
}