AdvCamera constructor
const
AdvCamera(
- {Key? key,
- CameraType initialCameraType = CameraType.rear,
- CameraPreviewRatio cameraPreviewRatio = CameraPreviewRatio.r16_9,
- CameraSessionPreset cameraSessionPreset = CameraSessionPreset.photo,
- FlashType flashType = FlashType.auto,
- bool bestPictureSize = true,
- CameraCreatedCallback? onCameraCreated,
- ImageCapturedCallback? onImageCaptured,
- String? fileNamePrefix,
- Color? focusRectColor,
- int? focusRectSize,
- bool ignorePermission = false,
- String? savePath,
- int? maxSize}
Implementation
const AdvCamera({
Key? key,
CameraType initialCameraType = CameraType.rear,
CameraPreviewRatio cameraPreviewRatio = CameraPreviewRatio.r16_9,
CameraSessionPreset cameraSessionPreset = CameraSessionPreset.photo,
FlashType flashType = FlashType.auto,
bool bestPictureSize = true,
this.onCameraCreated,
this.onImageCaptured,
this.fileNamePrefix,
this.focusRectColor,
this.focusRectSize,
this.ignorePermission = false,
this.savePath,
this.maxSize,
}) : this.initialCameraType = initialCameraType,
this.cameraPreviewRatio = cameraPreviewRatio,
this.cameraSessionPreset = cameraSessionPreset,
this.flashType = flashType,
this.bestPictureSize = bestPictureSize,
super(key: key);