ImagePickerOptions class

Specifies options for picking a single image from the device's camera or gallery.

This class inheritance is a byproduct of the api changing over time. It exists solely to avoid breaking changes.

Inheritance

Constructors

ImagePickerOptions({double? maxHeight, double? maxWidth, int? imageQuality, bool requestFullMetadata = true, CameraDevice preferredCameraDevice = CameraDevice.rear})
Creates an instance with the given maxHeight, maxWidth, imageQuality, referredCameraDevice and requestFullMetadata.
const
ImagePickerOptions.createAndValidate({double? maxHeight, double? maxWidth, int? imageQuality, bool requestFullMetadata = true, CameraDevice preferredCameraDevice = CameraDevice.rear})
Creates an instance with the given maxHeight, maxWidth, imageQuality, referredCameraDevice and requestFullMetadata.

Properties

hashCode int
The hash code for this object.
no setterinherited
imageQuality int?
Modifies the quality of the image, ranging from 0-100 where 100 is the original/max quality.
finalinherited
maxHeight double?
The maximum height of the image, in pixels.
finalinherited
maxWidth double?
The maximum width of the image, in pixels.
finalinherited
preferredCameraDevice CameraDevice
Used to specify the camera to use when the source is ImageSource.camera.
final
requestFullMetadata bool
If true, requests full image metadata, which may require extra permissions on some platforms, (e.g., NSPhotoLibraryUsageDescription on iOS).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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