Transform class
Represents the CSS transform property.
CSS transforms let you rotate, scale, skew, or translate an element. It modifies the coordinate space of the CSS visual formatting model.
Use the various factory constructors to create different types of transforms. You can apply multiple transforms to an element by combining them using Transform.combine.
Read more: MDN transform
Constructors
-
Transform.combine(List<
Transform> transforms) -
Combine multiple transforms into one.
constfactory
- Transform.matrix(double a, double b, double c, double d, double tx, double ty)
-
Describes a homogeneous 2D transformation matrix.
constfactory
- Transform.perspective(Unit value)
-
Sets the distance between the user and the z=0 plane.
constfactory
- Transform.rotate(Angle angle)
-
Rotates an element around a fixed point on the 2D plane.
constfactory
- Transform.rotateAxis({Angle? x, Angle? y, Angle? z})
-
Rotates an element around the individual axes in 3D space.
constfactory
- Transform.scale(double value)
-
Scales an element up or down on the 2D plane.
constfactory
- Transform.skew({Angle? x, Angle? y})
-
Skews an element on the 2D plane.
constfactory
- Transform.translate({Unit? x, Unit? y})
-
Translates an element on the 2D plane.
constfactory
Properties
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 ==(
Object other) → bool -
The equality operator.
inherited