AudioPlayer constructor

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,
  super.key,
  this.loop = false,
  this.muted = false,
  this.preload = false,
});