stop static method

Future<void> stop()

Stop playback

Implementation

static Future<void> stop() async {
  try {
    await _methodChannel.invokeMethod('stop');
    await dispose();
  } catch (e) {
    print('AudioPlayerPlatform.stop error: $e');
  }
}