duration property
Future<DurationRange?>
get
duration
The duration in the current video.
Implementation
Future<DurationRange?> get duration async {
if (_isDisposed) {
return null;
}
return _videoPlayerPlatform.getDuration(_playerId);
}