PathData class
A class that represents svg path data.
The default constructor uses a list of PathCommand
to build its path.
To parse a path from SVG data use PathData.parse.
To retrieve the operations stored within use the PathData.operations getter.
Constructors
- PathData.new(PathCommands _operations)
-
Builds a new instance of PathData by using a list of
PathCommand
s.const - PathData.lerp(PathData a, PathData b, double t)
-
Interpolates between two PathDatas given an interval
t
that is described between 1.0 and 0.0 both inclusive.factory - PathData.parse(String svg)
-
Builds a new instance of PathData using the
PathDataParse
class.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- operations → PathCommands
-
The currently stored operations for this PathData
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkForCompatibility(
PathData other) → bool - Check whether two paths can be interpolated between each other.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPath(
{double trimStart = 0.0, double trimEnd = 1.0, double trimOffset = 0.0}) → Path - Convert this PathData into a dart:ui Path object. This can then be used to paint inside a Canvas with Canvas.drawPath.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override