position property

Duration get position

Returns the current position of the video player.

Implementation

Duration get position {
  if (isInitialized) {
    return _videoPlayerController.value.position;
  }
  return Duration.zero;
}