CameraPicker constructor
const
CameraPicker({
- Key? key,
- List<
XFile> ? initialFiles, - double previewHeight = _defaultPreviewHeight,
- double previewWidth = _defaultPreviewWidth,
- WidgetBuilder? noCameraBuilder,
- bool showSwitchCameraButton = true,
- FutureOr<
bool> onDelete(- XFile file
- ResolutionPreset resolutionPreset = ResolutionPreset.high,
- Color iconColor = Colors.white,
- bool showTorchButton = true,
- bool showCancelButton = true,
- dynamic onError(
- dynamic error,
- dynamic stack
- int? maxPicture,
- int minPicture = 1,
Implementation
const CameraPicker({
Key? key,
this.initialFiles,
this.previewHeight = _defaultPreviewHeight,
this.previewWidth = _defaultPreviewWidth,
this.noCameraBuilder,
this.showSwitchCameraButton = true,
this.onDelete,
this.resolutionPreset = ResolutionPreset.high,
this.iconColor = Colors.white,
this.showTorchButton = true,
this.showCancelButton = true,
this.onError,
this.maxPicture,
this.minPicture = 1,
}) : super(key: key);