play method

Future<void> play(
  1. String url
)

Plays the audio from the provided url.

The URL must point to a valid audio source.

Implementation

Future<void> play(String url) async {
  await _audioPlayer.play(UrlSource(url));
}