setState method

  1. @override
void setState(
  1. CaptureMode captureMode
)
override

Switch to a state between

Implementation

@override
void setState(CaptureMode captureMode) {
  if (captureMode == CaptureMode.video) {
    return;
  }
  cameraContext.changeState(captureMode.toCameraState(cameraContext));
}