switchCamera method
Implementation
Future<void> switchCamera() async {
if (_methodChannel != null) {
try {
await _methodChannel!.invokeMethod('switchCamera');
} catch (e) {
logInfo('Error switching camera: $e');
}
}
}
Future<void> switchCamera() async {
if (_methodChannel != null) {
try {
await _methodChannel!.invokeMethod('switchCamera');
} catch (e) {
logInfo('Error switching camera: $e');
}
}
}