switchCamera method

Future<void> switchCamera()

Implementation

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