cycleLoop method

Future<bool> cycleLoop()

Cycle through loop modes (None → Track → Playlist → None)

Implementation

Future<bool> cycleLoop() async {
  final player = _state.selectedPlayer.isNotEmpty
      ? _state.selectedPlayer
      : null;
  final success = await _service.cycleLoop(player);
  if (success) {
    await updateLoopStatus();
  } else {
    _updateState(_state.copyWith(errorMessage: 'Failed to cycle loop mode'));
  }
  return success;
}