PathSegment class

A PathSegment represents a straight line or curved segment of a path between two or more points that are part of a PathFigure. The very first point is given by the PathFigure#startX and PathFigure#startY properties. After the first segment the beginning point of the next segment is the same as the end point of the previous segment. For most types of PathSegments the end point of the segment is given by #endX and #endY.

A PathSegment must not be modified once its containing PathFigure's Geometry has been assigned to a Shape.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

PathSegment([EnumValue? type, num? ex, num? ey, num? x1, num? y1, num? x2, Object? y2, bool? clockwise])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

arc EnumValue
For drawing an arc segment, a value for PathSegment#type.
getter/setter pair
bezier EnumValue
For drawing a cubic bezier segment, a value for PathSegment#type.
getter/setter pair
line EnumValue
For drawing a straight line segment, a value for PathSegment#type.
getter/setter pair
move EnumValue
For beginning a new subpath, a value for PathSegment#type.
getter/setter pair
quadraticBezier EnumValue
For drawing a quadratic bezier segment, a value for PathSegment#type.
getter/setter pair
svgArc EnumValue
For drawing an SVG arc segment, a value for PathSegment#type.
getter/setter pair