CompressionProfile enum

Preset compression profiles for common use-cases.

Pass to CloudMedia.pick as compressionProfile:

await CloudMedia.pick(compressionProfile: CompressionProfile.product)
Inheritance
Available extensions

Values

high → const CompressionProfile

High quality — suitable for hero images or anything shown large. Quality: 90, thumbnail: 400px.

product → const CompressionProfile

Balanced for product catalog images — good visual quality, reasonable size. Quality: 85 (package default), thumbnail: 300px.

avatar → const CompressionProfile

Optimised for profile pictures / avatars shown small. Quality: 75, thumbnail: 150px.

thumbnail → const CompressionProfile

Aggressive compression for thumbnails, previews, or low-bandwidth contexts. Quality: 60, thumbnail: 100px.

none → const CompressionProfile

No compression — pass the file through as-is. Use sparingly; large files may exceed Firestore Storage limits.

Properties

compress bool
Whether automatic compression should run at all for this profile.
no setter
hashCode int
The hash code for this object.
no setterinherited
imageQuality int
The image quality value (1–100) for this profile.
no setter
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailSize int
The thumbnail dimension in pixels for this profile.
no setter

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

values → const List<CompressionProfile>
A constant List of the values in this enum, in order of their declaration.