seekTo method Null safety

void seekTo(
  1. double position
)

Implementation

void seekTo(double position) {
  isPlaying = true;
  if (currentUrl.isEmpty) {
    return;
  }
  if (player == null) {
    recreateNode();
  }
  player?.play();
  player?.currentTime = position;
}