PathMorph class

This class has all the methods you need to create your morph animations.

Constructors

PathMorph()

Properties

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

Operators

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

Static Methods

generateAnimations(AnimationController controller, SampledPathData data, Function func) → void
Generates a bunch of animations that are responsible for moving all the points of paths into the right positions.
generatePath(SampledPathData data) Path
Generates a path using the SampledPathData object. You can use this path while drawing the frames of the morph animation on your canvas.
samplePaths(Path path1, Path path2, {double precision = 0.01}) SampledPathData
This method is responsible for sampling both the paths. It generates a SampledPathData object containing all the details required for the morph animation.