switchCamera method Null safety
Function to switch between front and rear camera
Implementation
void switchCamera() async {
var status = await Permission.camera.status;
if (status.isDenied) {
await Permission.camera.request();
}
value.engine?.switchCamera();
}