loadUrl method

Future<void> loadUrl(
  1. String url
)

Load audio from url (network) Stop current playing audio if any

Implementation

Future<void> loadUrl(String url) async {
  await stop();
  await _player.setUrl(url);
}