onProgressDragUpdate method

void onProgressDragUpdate(
  1. double relative
)

Implementation

void onProgressDragUpdate(double relative) async {
  if (_dispose) {
    return;
  }

  if (videoPlayerValue?.isInitialized == true) {
    final Duration position = (videoPlayerValue?.duration ?? Duration.zero) * relative;
    await seekTo(position);
  }
}