MyCamera constructor
const
MyCamera({
- Key? key,
- CameraType? initialCameraType,
- CameraPreviewRatio? cameraPreviewRatio,
- FlashType? flashType,
- bool? bestPictureSize,
- required CameraCreatedCallback onCameraCreated,
- required ImageCapturedCallback onImageCaptured,
- String? fileNamePrefix,
Implementation
const MyCamera({
Key? key,
CameraType? initialCameraType,
CameraPreviewRatio? cameraPreviewRatio,
FlashType? flashType,
bool? bestPictureSize,
required this.onCameraCreated,
required this.onImageCaptured,
this.fileNamePrefix,
}) : this.initialCameraType = initialCameraType ?? CameraType.rear,
this.cameraPreviewRatio =
cameraPreviewRatio ?? CameraPreviewRatio.r16_9,
this.flashType = flashType ?? FlashType.auto,
this.bestPictureSize = bestPictureSize ?? true,
super(key: key);