nextCamera method
Implementation
Future<void> nextCamera() async {
final cameras = await allCameras;
if (cameras.isEmpty) {
showToast("Keine Kameras verfügbar");
return;
}
_isProcessing = true;
notifyListeners();
_currentCameraIndex = (_currentCameraIndex + 1) % cameras.length;
_controller = await newController;
_isProcessing = false;
notifyListeners();
}