stop method

  1. @override
Future<void> stop()
override

invokes the stop method on the native platform, stopping the currently playing sound, if any.

Implementation

@override
Future<void> stop() => methodChannel.invokeMethod<void>('stop');