checkIfVideoFinished method

void checkIfVideoFinished()

Implementation

void checkIfVideoFinished() {
  try {
    if (playerController!.value.position.inSeconds ==
        playerController!.value.duration.inSeconds) {
      playerController!.removeListener(checkIfVideoFinished);
    }
  } catch (e) {}
}