This parameter has been replaced with useCamera2API.
This parameter accepts 3 values, API_X, API_1, API_2. Default value is API_X.
Some feature is available in each value.
API_1 features: Just taking picture
API_2 features: Taking picture, Scan barcode (Taking picture with flash has some issues, Auto flash in barcode scanning mode works in some phones.)
API_X features: Taking picture, Scan barcode (Auto flash in barcode scanning mode doesn't work.)
True means scan barcode mode and false means take picture mode
Because of performance reasons, you can't use barcode reader mode and take picture mode simultaneously.
This parameter accepts 3 values. CameraFlashMode.auto, CameraFlashMode.on and CameraFlashMode.off.
For changing value after initial use changeFlashMode method in controller.
There are 2 modes ScaleTypeMode.fill and ScaleTypeMode.fit for this parameter.
If you want camera preview fill your widget area, use fill mode. In this mode, camera preview may be croped for filling widget area.
If you want camera preview to show entire lens preview, use fit mode. In this mode, camera preview may be shows blank areas.