SubPath class
A sequence of SVG commands making up a subpath.
- Implemented types
- Annotations
-
- @immutable
Constructors
-
SubPath(List<
SvgCommand> segments) - Creates the SubPath from a list of segments. The list must not be empty, and if it has a ClosePath it must be the last segment.
Properties
Methods
-
mirror(
Axis axis, [double centerX = 0.0, double centerY = 0.0]) → SubPath -
Mirrors this over vertical or horizontal
axis
that goes thoughcenterX
,centerY
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reverse(
) → SubPath - Returns a new Path with the segments in reverse order.
-
rotate(
double angle, [double centerX = 0.0, double centerY = 0.0]) → SubPath -
Rotate this
angle
radians aroundcenterX
,centerY
.override -
scale(
num scaleX, [num? scaleY]) → SubPath -
Scales by
scaleX
andscaleY
. scaleY defaults to scaleX if not provided.override -
toString(
) → String -
Returns the SubPath as a valid SVG path string.
override
-
translate(
num x, num y) → SubPath -
Returns a new Path translated by x and y.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override