pause static method

Future pause()

Pauses the current playing track

Throws a PlatformException if pausing failed Throws a MissingPluginException if the method is not implemented on the native platforms.

Implementation

static Future pause() async {
  try {
    await _channel.invokeMethod(MethodNames.pause);
  } on Exception catch (e) {
    _logException(MethodNames.pause, e);
    rethrow;
  }
}