ImageManipulationCapabilities class

Represents the capabilities for manipulating an image URL

Constructors

ImageManipulationCapabilities.new({bool canAdjustWidth = false, bool canAdjustHeight = false, bool canAdjustQuality = false, String? widthParameterName, String? heightParameterName, String? qualityParameterName, int? maxWidth, int? maxHeight, int? maxQuality, int? minQuality, CdnType? cdnType, ImageManipulationStrategy manipulationStrategy = ImageManipulationStrategy.none})
Creates a new instance of ImageManipulationCapabilities
const
ImageManipulationCapabilities.fromJson(Map<String, dynamic> json)
Creates an instance from a JSON map
factory

Properties

canAdjustHeight bool
Whether the height can be adjusted
final
canAdjustQuality bool
Whether the quality can be adjusted
final
canAdjustWidth bool
Whether the width can be adjusted
final
cdnType CdnType?
The detected CDN type
final
hashCode int
The hash code for this object.
no setterinherited
heightParameterName String?
Parameter name for height adjustment
final
manipulationStrategy ImageManipulationStrategy
Strategy used for image manipulation
final
maxHeight int?
Maximum allowed height
final
maxQuality int?
Maximum allowed quality (usually 100)
final
maxWidth int?
Maximum allowed width
final
minQuality int?
Minimum allowed quality
final
qualityParameterName String?
Parameter name for quality adjustment
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widthParameterName String?
Parameter name for width adjustment
final

Methods

copyWith({bool? canAdjustWidth, bool? canAdjustHeight, bool? canAdjustQuality, String? widthParameterName, String? heightParameterName, String? qualityParameterName, int? maxWidth, int? maxHeight, int? maxQuality, int? minQuality, CdnType? cdnType, ImageManipulationStrategy? manipulationStrategy}) ImageManipulationCapabilities
Creates a copy of this instance with the specified attributes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this instance to a JSON map
toString() String
A string representation of this object.
inherited

Operators

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