position property Null safety

Future<Duration?> position

The position in the current video.

Implementation

Future<Duration?> get position async {
  if (_isDisposed) {
    return null;
  }
  return await _videoPlayerPlatform.getPosition(_textureId);
}