updateShuffleStatus method
Update shuffle status from player
Implementation
Future<void> updateShuffleStatus() async {
try {
final player = _state.selectedPlayer.isNotEmpty
? _state.selectedPlayer
: null;
final shuffleStatus = await _service.getShuffle(player);
if (shuffleStatus != null) {
_updateState(_state.copyWith(shuffleStatus: shuffleStatus.trim()));
}
} catch (e) {
debugPrint('Error updating shuffle status: $e');
_updateState(_state.copyWith(shuffleStatus: 'Unknown'));
}
}