PickerOptions constructor
const
PickerOptions({
- ImageSource source = ImageSource.gallery,
- List<
ImageSource> sources = const [ImageSource.camera, ImageSource.gallery, ImageSource.url], - MediaType mediaType = MediaType.image,
- int? maxCount,
- CameraDevice preferredCameraDevice = CameraDevice.rear,
- CropOptions? cropOptions,
- CompressionOptions? compressionOptions,
- PickerTheme? theme,
- CustomModalBuilder? customModalBuilder,
- String? modalTitle = 'Select Media Source',
- String? cameraOptionText = 'Take Photo',
- String? galleryOptionText = 'Choose from Gallery',
- String? urlOptionText = 'Import from URL',
- 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',
});