CropTransformation class

Crop an image to fit into specified dimensions, implement optional offsets.

See https://uploadcare.com/docs/transformations/image/resize-crop/#operation-crop

Inheritance
Implemented types

Constructors

CropTransformation({Dimensions? size, AspectRatio? aspectRatio, Coordinates? coords, CropTagTValue? tag})

Properties

aspectRatio AspectRatio?
See https://uploadcare.com/docs/transformations/image/resize-crop/#operation-crop-aspect-ratio
final
coords Coordinates?
final
delimiter String
Instruction delimiter
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
operation String
CDN API operation URL directive
no setteroverride
params List<String>
Related parameters
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Dimensions?
final
tag CropTagTValue?
Crops the image to the object specified by the tag parameter. The found object fits into the given aspect ratio if aspectRatio is specified.
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 ==(dynamic other) bool
The equality operator.
inherited