ImageSelect class

Constructors

ImageSelect({CameraUiSettings? cameraUiSettings, bool compressImage = false, CompressParams? compressParams, bool compressOnlyForCamera = false, ImageSelectFeatureConfig? features})

Properties

cameraUiSettings CameraUiSettings?
getter/setter pair
compressImage bool
final
compressOnlyForCamera bool
final
compressParams CompressParams?
final
features ImageSelectFeatureConfig?
Optional: crop (image_cropper), video (video_compress), file_picker multi (web/desktop). Leave null to keep behavior identical to older versions (image picker + camera only).
final
file File?
Last single image from pickImage, if any.
getter/setter pair
files List<File>?
Last batch from pickMultiImages, if any.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoFile File?
Last video from pickVideo / pickVideoFromGallery, if any.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage({required BuildContext context, required ImageFrom source}) Future<File?>
pickMultiImages({required BuildContext context, int? maxImages, bool requestFullMetadata = true}) Future<List<File>>
Picks multiple images from the gallery (iOS 14+; may be limited on older OS).
pickMultiImagesAsXFiles({int? maxImages, bool requestFullMetadata = true}) Future<List<XFile>>
Cross-platform multi pick using XFile (works on web when using file_picker).
pickVideo({required ImageFrom source}) Future<File?>
Records a video from camera or gallery. Requires ImageSelectFeatureConfig.video with VideoFeatureConfig.enabled.
pickVideoFromCamera() Future<File?>
Same as pickVideo with ImageFrom.camera.
pickVideoFromGallery() Future<File?>
Same as pickVideo with ImageFrom.gallery.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

compress({required File image, CompressParams compressParams = defaultCompress}) Future<File?>
Converts HEIC/WebP/PNG to JPEG when CompressParams.format is CompressFormat.jpeg and applies optional resize. Uses EXIF-based orientation when autoCorrectionAngle is true.
retrieveLostData() Future<LostDataResponse>
Android: recovers a pick result after the activity was destroyed (e.g. low memory).

Constants

defaultCompress → const CompressParams