AudioPlayer constructor Null safety

const AudioPlayer(
  1. String url,
  2. {bool autoplay = false,
  3. Key? key,
  4. bool loop = false,
  5. bool muted = false,
  6. bool preload = false}
)

Creates a player.

Implementation

const AudioPlayer(
  this.url, {
  this.autoplay = false,
  Key? key,
  this.loop = false,
  this.muted = false,
  this.preload = false,
}) : super(key: key);