switchCamera method
Switches between front and rear cameras. This method needs to be called after the camera is started (for example, by calling startPreview or joinChannel ).
Implementation
Future<void> switchCamera() async {
await _engine!.switchCamera();
}