StraightPathTransformation class
A path transformation that moves the initial position along a straight line.
- Inheritance
-
- Object
- PathTransformation
- StraightPathTransformation
Constructors
- StraightPathTransformation({required double distance, double angle = 0})
-
Creates a StraightPathTransformation with the given distance and an optional
angle
. Theangle
parameter allows specifying the angle of the straight line in degrees. The distance parameter specifies how far the position moves along the straight line.
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
-
transform(
Offset initialPosition, double progress) → Offset -
Transforms the initial position based on the progress of the transformation.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited