setProgress method

Future<void> setProgress({
  1. required Duration progress,
  2. required Duration duration,
})

Sends an update on the progress of the content video.

When using a Timer to periodically send updates through this method, an interval of 200ms is recommended.

Implementation

Future<void> setProgress({
  required Duration progress,
  required Duration duration,
}) {
  return platform.setProgress(progress: progress, duration: duration);
}