ImageCompression class sealed

Represents the compression level of an image, which affects quality and file size.

Constructors

ImageCompression.custom(int value)
Creates a custom image quality level with a specified value.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The compression value, typically ranging from 0 to 99.
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

Constants

high → const _FixedImageCompression
High image compression, with minimal quality and smaller file size.
low → const _FixedImageCompression
Low image compression, with higher quality and larger file size.
medium → const _FixedImageCompression
Medium image compression, balancing quality and image clarity.
none → const _FixedImageCompression
No compression, with highest quality and largest file size.