toggleShuffle static method

Future toggleShuffle()

Toggles shuffle

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

Implementation

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