CssTranslateFunction class

translate(), translateX() and translateY().

This is the function that forces the paint-time design of this package. x is a percentage of the element's own width and y of its own height, and neither number exists before layout.

Inheritance
Annotations

Constructors

CssTranslateFunction(CssTransformLength x, CssTransformLength y)
Creates a translation from two lengths. Either may be a percentage.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
isIdentity → bool
Whether this function leaves the element exactly where it was.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → CssTransformLength
The horizontal offset. A percentage is of the element's width.
final
y → CssTransformLength
The vertical offset. A percentage is of the element's height.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMatrix(Size size) → Matrix4
Returns the matrix for this function alone, with percentages resolved against size.
override
toString() → String
A string representation of this object.
override

Operators

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