duration property

Duration get duration

Returns the duration of the video player.

Implementation

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