CameraPicker constructor

const CameraPicker({
  1. Key? key,
  2. List<XFile>? initialFiles,
  3. double previewHeight = _defaultPreviewHeight,
  4. double previewWidth = _defaultPreviewWidth,
  5. WidgetBuilder? noCameraBuilder,
  6. bool showSwitchCameraButton = true,
  7. FutureOr<bool> onDelete(
    1. XFile file
    )?,
  8. ResolutionPreset resolutionPreset = ResolutionPreset.high,
  9. Color iconColor = Colors.white,
  10. bool showTorchButton = true,
  11. bool showCancelButton = true,
  12. dynamic onError(
    1. dynamic error,
    2. dynamic stack
    )?,
  13. int? maxPicture,
  14. 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);