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

hashCode int
The hash code for this object.
no setteroverride
isClosed bool
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<SvgCommand>
final

Methods

mirror(Axis axis, [double centerX = 0.0, double centerY = 0.0]) SubPath
Mirrors this over vertical or horizontal axis that goes though centerX,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 around centerX,centerY.
override
scale(num scaleX, [num? scaleY]) SubPath
Scales by scaleX and scaleY. 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