StrokeJoin enum

Styles to use for line segment joins.

This only affects line joins for polygons drawn by Canvas.drawPath and rectangles, not points drawn as lines with Canvas.drawPoints.

See also:

Inheritance

Values

miter → const StrokeJoin

Joins between line segments form sharp corners.

The center of the line segment is colored in the diagram above to highlight the join, but in normal usage the join is the same color as the line.

See also:

  • Paint.strokeJoin, used to set the line segment join style to this value.
  • Paint.strokeMiterLimit, used to define when a miter is drawn instead of a bevel when the join is set to this value.
round → const StrokeJoin

Joins between line segments are semi-circular.

The center of the line segment is colored in the diagram above to highlight the join, but in normal usage the join is the same color as the line.

See also:

bevel → const StrokeJoin

Joins between line segments connect the corners of the butt ends of the line segments to give a beveled appearance.

The center of the line segment is colored in the diagram above to highlight the join, but in normal usage the join is the same color as the line.

See also:

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<StrokeJoin>
A constant List of the values in this enum, in order of their declaration.