setShuffle method

Future<bool> setShuffle(
  1. String status, [
  2. String? player
])

Set shuffle status (On/Off)

Implementation

Future<bool> setShuffle(String status, [String? player]) async {
  final args = player != null
      ? ['--player=$player', 'shuffle', status]
      : ['shuffle', status];
  return _executor.executeCommandWithArgs(args);
}