recreateNode method Null safety

void recreateNode()

Implementation

void recreateNode() {
  if (currentUrl.isEmpty) {
    return;
  }
  player = AudioElement(currentUrl);
  player?.loop = playMode == PlayMode.single;
  player?.volume = currentVolume;
  player?.playbackRate = currentRate;
}