PatternFit enum

Determines how a non-solid StrokePattern should be fit to a line when their lengths are not equal or multiples

StrokePattern.solids do not require fitting.

Inheritance
Available extensions

Values

none → const PatternFit

Don't apply any specific fit to the pattern - repeat exactly as specified, and stop when the last point is reached

Not recommended. May leave a gap between the final segment and the last point, making it unclear where the line ends.

scaleDown → const PatternFit

Scale the pattern to ensure it fits an integer number of times into the polyline (smaller version regarding rounding, cf. scaleUp)

scaleUp → const PatternFit

Scale the pattern to ensure it fits an integer number of times into the polyline (bigger version regarding rounding, cf. scaleDown)

appendDot → const PatternFit

Uses the pattern exactly, truncating the final dash if it does not fit, or adding a single dot at the last point if the final dash does not reach the last point (there is a gap at that location)

extendFinalDash → const PatternFit

(Only valid for StrokePattern.dashed, equal to appendDot for StrokePattern.dotted)

Uses the pattern exactly, truncating the final dash if it does not fit, or extending the final dash to the last point if it would not normally reach that point (there is a gap at that location).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<PatternFit>
A constant List of the values in this enum, in order of their declaration.