- Inheritance
-
- Object
- ImagePicker
- CdsGalleryPluginPlatform
- Implementers
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
image
↔ XFile?
-
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getImage({required ImageSource source, double? maxWidth, double? maxHeight, int? imageQuality, CameraDevice preferredCameraDevice = CameraDevice.rear})
→ Future<PickedFile?>
-
Returns a
PickedFile
object wrapping the image that was picked.
inherited
-
getLostData()
→ Future<LostData>
-
Retrieve the lost
PickedFile
when selectImage or selectVideo
failed because the MainActivity is destroyed. (Android only)
inherited
-
getMultiImage({double? maxWidth, double? maxHeight, int? imageQuality})
→ Future<List<PickedFile>?>
-
Returns a List<PickedFile> object wrapping the images that were picked.
inherited
-
getVideo({required ImageSource source, CameraDevice preferredCameraDevice = CameraDevice.rear, Duration? maxDuration})
→ Future<PickedFile?>
-
Returns a
PickedFile
object wrapping the video that was picked.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pickImage({required ImageSource source, double? maxWidth, double? maxHeight, int? imageQuality, CameraDevice preferredCameraDevice = CameraDevice.rear, bool requestFullMetadata = true})
→ Future<XFile?>
-
Returns an
XFile
object wrapping the image that was picked.
inherited
-
pickMedia({double? maxWidth, double? maxHeight, int? imageQuality, bool requestFullMetadata = true})
→ Future<XFile?>
-
Returns an
XFile
of the image or video that was picked.
The image or videos can only come from the gallery.
inherited
-
pickMultiImage({double? maxWidth, double? maxHeight, int? imageQuality, bool requestFullMetadata = true})
→ Future<List<XFile>>
-
Returns a List<XFile> object wrapping the images that were picked.
inherited
-
pickMultipleMedia({double? maxWidth, double? maxHeight, int? imageQuality, bool requestFullMetadata = true})
→ Future<List<XFile>>
-
Returns a List<XFile> with the images and/or videos that were picked.
The images and videos come from the gallery.
inherited
-
pickVideo({required ImageSource source, CameraDevice preferredCameraDevice = CameraDevice.rear, Duration? maxDuration})
→ Future<XFile?>
-
Returns an
XFile
object wrapping the video that was picked.
inherited
-
retrieveLostData()
→ Future<LostDataResponse>
-
Retrieve the lost
XFile
when pickImage
, pickMultiImage
or pickVideo
failed because the MainActivity
is destroyed. (Android only)
inherited
-
selectImage()
→ Future<File?>
-
-
supportsImageSource(ImageSource source)
→ bool
-
Returns true if the current platform implementation supports
source
.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited