Rotate3DDecorator class

Rotate3DDecorator treats the underlying component as if it was a flat sheet of paper, and applies a 3D rotation to it.

The angles of rotation can be changed dynamically, allowing you to rotate the content continuously at the desired angular speeds.

Inheritance

Constructors

Rotate3DDecorator({Vector2? center, double angleX = 0.0, double angleY = 0.0, double angleZ = 0.0, double perspective = 0.001})

Properties

angleX double
Angle of rotation around the X axis. This rotation is usually described as "vertical".
getter/setter pair
angleY double
Angle of rotation around the Y axis. This rotation is typically described as "horizontal".
getter/setter pair
angleZ double
Angle of rotation around the Z axis. This is a regular "2D" rotation because it occurs entirely inside the plane in which the component is normally drawn.
getter/setter pair
center Vector2
The center of rotation, in the parent coordinate space.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isFlipped bool
Returns true if the component is currently being rendered from its back side, and false if it shows the front side.
no setter
isLastDecorator bool
no setterinherited
perspective double
The strength of the perspective effect. In other words, how much the elements that are "behind" the canvas are shrunk, and those in front of it are expanded.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLast(Decorator? decorator) → void
Adds a new decorator onto the chain of decorators
inherited
apply(void draw(Canvas), Canvas canvas) → void
Applies visual effect while drawing on the canvas.
override
applyChain(void draw(Canvas), Canvas canvas) → void
Applies this and all subsequent decorators if any.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLast() → void
Removes the last decorator from the chain of decorators
inherited
replaceLast(Decorator? decorator) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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