Transformation class

One transformation component set, serialized as w_100,h_150,c_fill.

Components are held by their Cloudinary short key and emitted in alphabetical key order, which is what Cloudinary's own SDKs produce. Anything without a typed setter goes through raw.

final t = Transformation()
  ..width(600)
  ..height(400)
  ..crop(CropMode.fill)
  ..gravity(Gravity.auto);

print(t.serialize()); // c_fill,g_auto,h_400,w_600

Constructors

Transformation()
Creates an empty transformation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether nothing has been set.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

angle(Object value) → void
Rotates by degrees, or by a named mode such as auto_right.
aspectRatio(String value) → void
Sets the aspect ratio, for example 16:9.
audioCodec(String value) → void
Sets the audio codec.
background(String value) → void
Sets the background, accepting #rrggbb or a colour name.
bitRate(Object value) → void
Sets the bit rate.
border(String value) → void
Sets a border, such as 2px_solid_black.
color(String value) → void
Sets the colour used by effects and text.
crop(CropMode mode) → void
Sets the crop mode.
dpr(Object value) → void
Sets the device pixel ratio.
duration(Object value) → void
Sets the duration for video.
effect(Effect value) → void
Applies a named effect.
effectValue(Effect value, Object argument) → void
Applies an effect with an argument, such as blur:300.
endOffset(Object value) → void
Sets the end offset for video.
flags(List<Flag> values) → void
Sets flags. Multiple flags join with a dot, which is Cloudinary's separator for this parameter alone.
format(DeliveryFormat value) → void
Sets the delivery format.
gravity(Gravity value) → void
Sets the gravity used when cropping.
height(Object value) → void
Sets the output height.
named(String value) → void
Applies a stored named transformation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
opacity(int value) → void
Sets opacity from 0 to 100.
overlay(String value) → void
Overlays another asset.
page(Object value) → void
Selects a page or frame.
quality(Quality value) → void
Sets output quality.
qualityValue(int value) → void
Sets an explicit numeric quality between 1 and 100.
radius(Object value) → void
Sets corner rounding. Use max for a circle.
raw(String component) → void
Appends a component verbatim, for anything without a typed setter.
serialize() → String
Serializes to Cloudinary's comma-separated short form.
startOffset(Object value) → void
Sets the start offset for video.
streamingProfile(String value) → void
Sets the adaptive streaming profile.
toString() → String
A string representation of this object.
override
underlay(String value) → void
Places another asset underneath.
videoCodec(String value) → void
Sets the video codec.
width(Object value) → void
Sets the output width. A string allows auto and expressions.
x(Object value) → void
Sets the horizontal offset.
y(Object value) → void
Sets the vertical offset.
zoom(Object value) → void
Sets the zoom factor.

Operators

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