PathMetricsTransformation class

A path transformation that moves the initial position along a path based on metrics.

This transformation uses the metrics of a defined Path to calculate the position along the path. The position is determined by the progress of the transformation along the path's length.

Inheritance

Constructors

PathMetricsTransformation({required Path path})
Creates a PathMetricsTransformation with the given path.

Properties

hashCode int
The hash code for this object.
no setterinherited
path Path
The path used to compute metrics for the transformation.
final
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
positionFor(Particle particle, double progress) Offset
Transforms the initial position of a particle based on the progress of the transformation.
override
toString() String
A string representation of this object.
inherited

Operators

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