isVideoEndCheck method

dynamic isVideoEndCheck()

check the video is end

Implementation

isVideoEndCheck() {
  if (videoPlayerController!.value.position ==
      videoPlayerController!.value.duration) {
    isVideoEnd = true;
    setFunctionVisible(always: true);
  } else {
    isVideoEnd = false;
  }
  notifyListeners();
}