toggleShuffle method
Toggle shuffle
Implementation
Future<bool> toggleShuffle() async {
final player = _state.selectedPlayer.isNotEmpty
? _state.selectedPlayer
: null;
final success = await _service.toggleShuffle(player);
if (success) {
await updateShuffleStatus();
} else {
_updateState(_state.copyWith(errorMessage: 'Failed to toggle shuffle'));
}
return success;
}