buildAudioPlayer method Null safety

Widget? buildAudioPlayer(
  1. BuildMetadata meta,
  2. String url,
  3. {required bool autoplay,
  4. required bool loop,
  5. required bool muted,
  6. required bool preload}
)

Builds AudioPlayer.

Implementation

Widget? buildAudioPlayer(
  BuildMetadata meta,
  String url, {
  required bool autoplay,
  required bool loop,
  required bool muted,
  required bool preload,
}) =>
    AudioPlayer(
      url,
      autoplay: autoplay,
      loop: loop,
      muted: muted,
      preload: preload,
    );