stop method

Future<void> stop ()

Stops and destroys the service. init() has to be run after this one, if you want to start playback again This also runs AudioPlayerListener.onPlayerCompleted() to free resources

Implementation

static Future<void> stop() async {
  await _checkIfBound();
  await _nativeChannel.invokeMethod("stop");
}