StrokeJoin enum Null safety

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

Constructors

StrokeJoin()
const

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.
StrokeJoin()
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:

StrokeJoin()
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:

StrokeJoin()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[miter, round, bevel]