CameraPicker constructor
const
CameraPicker({
- Key? key,
- bool enableRecording = false,
- bool onlyEnableRecording = false,
- bool enableAudio = true,
- bool enableSetExposure = true,
- bool enableExposureControlOnPoint = true,
- bool enablePinchToZoom = true,
- bool enablePullToZoomInRecord = true,
- bool shouldDeletePreviewFile = false,
- bool shouldLockPortrait = true,
- Duration? maximumRecordingDuration = const Duration(seconds: 15),
- ThemeData? theme,
- ResolutionPreset resolutionPreset = ResolutionPreset.max,
- ImageFormatGroup imageFormatGroup = ImageFormatGroup.unknown,
- int cameraQuarterTurns = 0,
- Widget foregroundBuilder()?,
- EntitySaveCallback? onEntitySaving,
Implementation
const CameraPicker({
Key? key,
this.enableRecording = false,
this.onlyEnableRecording = false,
this.enableAudio = true,
this.enableSetExposure = true,
this.enableExposureControlOnPoint = true,
this.enablePinchToZoom = true,
this.enablePullToZoomInRecord = true,
this.shouldDeletePreviewFile = false,
this.shouldLockPortrait = true,
this.maximumRecordingDuration = const Duration(seconds: 15),
this.theme,
this.resolutionPreset = ResolutionPreset.max,
this.imageFormatGroup = ImageFormatGroup.unknown,
this.cameraQuarterTurns = 0,
this.foregroundBuilder,
this.onEntitySaving,
}) : assert(
enableRecording == true || onlyEnableRecording != true,
'Recording mode error.',
),
super(key: key);