ImageCompressionOptions class

Image compression options

Inheritance

Constructors

ImageCompressionOptions({String? outputFormat, bool keepMetadata = true, Map<String, dynamic>? customOptions, int quality = 80, int? maxWidth, int? maxHeight, bool progressive = false, bool stripMetadata = false, String? format})
const

Properties

customOptions Map<String, dynamic>?
finalinherited
format String?
final
hashCode int
The hash code for this object.
no setterinherited
keepMetadata bool
finalinherited
maxHeight int?
final
maxWidth int?
final
outputFormat String?
finalinherited
progressive bool
final
quality int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stripMetadata bool
final

Methods

copyWith({String? outputFormat, bool? keepMetadata, Map<String, dynamic>? customOptions, int? quality, int? maxWidth, int? maxHeight, bool? progressive, bool? stripMetadata, String? format}) ImageCompressionOptions
Create a copy with updated values
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to Map
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited