StraightPathTransformation class

A path transformation that moves the initial position along a straight line.

Inheritance

Constructors

StraightPathTransformation({required double distance, double angle = 0})
Creates a StraightPathTransformation with the given distance and an optional angle. The angle 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

distance double
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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