StrokePattern class

Determines whether a stroke should be solid, dotted, or dashed, and the exact characteristics of each

A stroke is either a Polyline itself, or the border of a Polygon.

Annotations

Constructors

StrokePattern.dashed({required List<double> segments, PatternFit patternFit = PatternFit.scaleUp})
Elongated dashes, with length and spacing set by segments
const
StrokePattern.dotted({double spacingFactor = 1.5, PatternFit patternFit = PatternFit.scaleUp})
Circular dots, spaced with spacingFactor
const
StrokePattern.solid()
Solid/unbroken
const

Properties

hashCode int
The hash code for this object.
no setteroverride
patternFit PatternFit?
Determines how a non-solid StrokePattern should be fit to a line when their lengths are not equal or multiples
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<double>?
A list of even length with a minimum of 2, in the form of [a₁, b₁, (a₂, b₂, ...)], where a should be the length of segments in 'units', and b the length of the space after each segment in units. Both values must be strictly positive.
final
spacingFactor double?
The multiplier used to calculate the spacing between dots in a dotted polyline, with respect to Polyline.strokeWidth/ Polygon.borderStrokeWidth
final

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.
override