switchCamera method

void switchCamera()

Implementation

void switchCamera() async {
  bool isFrontCamera = mediaState.isFrontCamera.value;
  await liveService.switchCamera(!isFrontCamera);
  mediaState.isFrontCamera.value = !isFrontCamera;
}