setState method
Switch to a state between
- CaptureMode.photo
- CaptureMode.video
CaptureMode.ANALYSIS
Implementation
@override
void setState(CaptureMode captureMode) {
if (captureMode == CaptureMode.preview) {
return;
}
cameraContext.changeState(captureMode.toCameraState(cameraContext));
}