seek method

void seek(
  1. int position
)

Implementation

void seek(int position) {
  final seekPosition = position / 1000.0;
  player?.currentTime = seekPosition;

  if (!isPlaying) {
    pausedAt = seekPosition;
  }
}