switchCamera method

Future<void> switchCamera()

Implementation

Future<void> switchCamera() async {
  var status = await Permission.camera.status;
  if (status.isDenied) {
    await Permission.camera.request();
  }

  backCamera.value = !backCamera.value;

  await EnxRtc.switchCamera();
}