Options class

Constructors

Options({double maxSizeMB = 1, double maxWidthOrHeight = 2048, bool useWebWorker = true, double maxIteration = 10, double? exifOrientation, dynamic onProgress(double progress)?, String? fileType, double initialQuality = 1, bool alwaysKeepResolution = false, bool preserveExif = false, String? libURL})

Properties

alwaysKeepResolution → bool
@default false
final
exifOrientation → double?
Default to be the exif orientation from the image file
final
fileType → String?
Default to be the original mime type from the image file
final
hashCode → int
The hash code for this object.
no setterinherited
initialQuality → double
@default 1.0
final
libURL → String?
@default https://cdn.jsdelivr.net/npm/browser-image-compression/dist/browser-image-compression.js
final
maxIteration → double
@default 10
final
maxSizeMB → double
@default Number.POSITIVE_INFINITY
final
maxWidthOrHeight → double
@default undefined
final
onProgress → dynamic Function(double progress)?
A function takes one progress argument (progress from 0 to 100)
final
preserveExif → bool
@default undefined @default false
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useWebWorker → bool
@default true
final

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