ImagePickerOptions class Null safety
Specifies options for picking a single image from the device's camera or gallery.
Constructors
- ImagePickerOptions({double? maxHeight, double? maxWidth, int? imageQuality, CameraDevice preferredCameraDevice = CameraDevice.rear, bool requestFullMetadata = true})
-
Creates an instance with the given maxHeight, maxWidth, imageQuality,
referredCameraDevice
and requestFullMetadata.const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- imageQuality → int?
-
Modifies the quality of the image, ranging from 0-100 where 100 is the
original/max quality.
final
- maxHeight → double?
-
The maximum height of the image, in pixels.
final
- maxWidth → double?
-
The maximum width of the image, in pixels.
final
- 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).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited