discontinuedPackage vector_graphics_compiler_plus has been discontinued and replaced by vector_graphics_compiler.

PathBuilder class

Creates a new builder of Path objects.

Constructors

PathBuilder([PathFillType? fillType])
Creates a new path builder for paths of the specified fill type.
PathBuilder.fromPath(Path path)
Creates a new mutable path builder object from an existing Path.

Properties

fillType ↔ PathFillType
The fill type to use for the new 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

Methods

addOval(Rect oval) → PathBuilder
Adds an oval command to new path.
addPath(Path other) → PathBuilder
Adds the commands of an existing path to the new path being created.
addRect(Rect rect) → PathBuilder
Adds a rectangle to the new path.
addRRect(Rect rect, double rx, double ry) → PathBuilder
Adds a rounded rectangle to the new path.
close() → PathBuilder
cubicTo(double x1, double y1, double x2, double y2, double x3, double y3) → PathBuilder
lineTo(double x, double y) → PathBuilder
moveTo(double x, double y) → PathBuilder
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPath({bool reset = true}) → Path
Creates a new Path object from the commands in this path.
toString() → String
A string representation of this object.
inherited

Operators

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