CompressFormat class Null safety

Class that represents the known formats a bitmap can be compressed into.

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override
toValue() String

Operators

operator ==(Object value) bool
The equality operator. [...]
override

Static Properties

values Set<CompressFormat>
final

Static Methods

fromValue(String? value) CompressFormat?

Constants

JPEG → const CompressFormat
Compress to the JPEG format. Quality of 0 means compress for the smallest size. 100 means compress for max visual quality.
const CompressFormat._internal("JPEG")
PNG → const CompressFormat
Compress to the PNG format. PNG is lossless, so quality is ignored.
const CompressFormat._internal("PNG")
WEBP → const CompressFormat
Compress to the WEBP lossy format. Quality of 0 means compress for the smallest size. 100 means compress for max visual quality. [...]
const CompressFormat._internal("WEBP")
WEBP_LOSSLESS → const CompressFormat
Compress to the WEBP lossless format. Quality refers to how much effort to put into compression. A value of 0 means to compress quickly, resulting in a relatively large file size. 100 means to spend more time compressing, resulting in a smaller file. [...]
const CompressFormat._internal("WEBP_LOSSLESS")
WEBP_LOSSY → const CompressFormat
Compress to the WEBP lossy format. Quality of 0 means compress for the smallest size. 100 means compress for max visual quality. [...]
const CompressFormat._internal("WEBP_LOSSY")