ShapePath class

This class is used to convert a series of shapes to an array of Paths, for example an SVG shape to a path.

Constructors

ShapePath()
Creates a new ShapePath. Unlike a Path, no points are passed in as the ShapePath is designed to be generated after creation.

Properties

color ↔ Color
getter/setter pair
currentPath Path
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subPaths List<Path>
getter/setter pair
type String
getter/setter pair
userData Map<String, dynamic>?
getter/setter pair

Methods

bezierCurveTo(double aCP1x, double aCP1y, double aCP2x, double aCP2y, double aX, double aY) ShapePath
This creates a bezier curve from the currentPath's offset to x and y with cp1X, cp1Y and cp2X, cp2Y as control points and updates the currentPath's offset to x and y.
lineTo(double x, double y) ShapePath
This creates a line from the currentPath's offset to X and Y and updates the offset to X and Y.
moveTo(double x, double y) ShapePath
Starts a new Path and calls Path.moveTo( x, y ) on that Path. Also points ShapePath.currentPath currentPath to that Path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quadraticCurveTo(double aCPx, double aCPy, double aX, double aY) ShapePath
This creates a quadratic curve from the currentPath's offset to x and y with cpX and cpY as control point and updates the currentPath's offset to x and y.
splineThru(List<Vector2> pts) ShapePath
Connects a new SplineCurve onto the currentPath.
toShapes(bool isCCW, bool noHoles) List<Shape>
Converts the subPaths array into an array of Shapes. By default solid shapes are defined clockwise (CW) and holes are defined counterclockwise (CCW). If isCCW is set to true, then those are flipped.
toString() String
A string representation of this object.
inherited

Operators

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