setVolume method Null safety

void setVolume(
  1. double volume
)

Implementation

void setVolume(double volume) {
  currentVolume = volume;
  player?.volume = volume;
}