ImageOptions class

Specifies image-specific options for picking.

Implementers

Constructors

ImageOptions({double? maxHeight, double? maxWidth, int? imageQuality, bool requestFullMetadata = true})
Creates an instance with the given maxHeight, maxWidth, imageQuality and requestFullMetadata.
const
ImageOptions.createAndValidate({double? maxHeight, double? maxWidth, int? imageQuality, bool requestFullMetadata = true})
Creates an instance with the given maxHeight, maxWidth, imageQuality and requestFullMetadata. Throws if options are not valid.

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.
final
maxHeight double?
The maximum height of the image, in pixels.
final
maxWidth double?
The maximum width of the image, in pixels.
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.
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