PickerOptions constructor

const PickerOptions({
  1. ImageSource source = ImageSource.gallery,
  2. List<ImageSource> sources = const [ImageSource.camera, ImageSource.gallery, ImageSource.url],
  3. MediaType mediaType = MediaType.image,
  4. int? maxCount,
  5. CameraDevice preferredCameraDevice = CameraDevice.rear,
  6. CropOptions? cropOptions,
  7. CompressionOptions? compressionOptions,
  8. PickerTheme? theme,
  9. CustomModalBuilder? customModalBuilder,
  10. String? modalTitle = 'Select Media Source',
  11. String? cameraOptionText = 'Take Photo',
  12. String? galleryOptionText = 'Choose from Gallery',
  13. String? urlOptionText = 'Import from URL',
  14. String? cancelButtonText = 'Cancel',
})

Creates a new PickerOptions configuration instance.

Implementation

const PickerOptions({
  this.source = ImageSource.gallery,
  this.sources = const [ImageSource.camera, ImageSource.gallery, ImageSource.url],
  this.mediaType = MediaType.image,
  this.maxCount,
  this.preferredCameraDevice = CameraDevice.rear,
  this.cropOptions,
  this.compressionOptions,
  this.theme,
  this.customModalBuilder,
  this.modalTitle = 'Select Media Source',
  this.cameraOptionText = 'Take Photo',
  this.galleryOptionText = 'Choose from Gallery',
  this.urlOptionText = 'Import from URL',
  this.cancelButtonText = 'Cancel',
});