LineStyle class final

The style of the polyline.

Constructors

LineStyle({double strokeWidth = 5.0, double gradientLength = 0.0, Color outlineColor = const ui.Color(0x00000000), double outlineWidth = 0.0, bool innerOutlineEnabled = false, double turnRadius = 10.0, double arcApproximationStep = 12.0, double dashLength = 0.0, double gapLength = 0.0, double dashOffset = 0.0})
const

Properties

arcApproximationStep double
Defines step of arc approximation. Smaller values make polyline smoother. Measured in degrees. Default: 12.
final
dashLength double
Length of a dash in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
final
dashOffset double
Offset from the start of the polyline to the reference dash in units. Default: 0.
final
gapLength double
Length of the gap between two dashes in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
final
gradientLength double
Maximum length (in units) of the gradient from one color to another. Default: 0.
final
hashCode int
The hash code for this object.
no setteroverride
innerOutlineEnabled bool
Enables the inner outline if true (a dark border along the edge of the outline). Default: false.
final
outlineColor Color
The outline color. Default: hexademical RGBA code 0x00000000.
final
outlineWidth double
Width of the outline in units. Default: 0.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth double
The stroke width in units. Default: 5. The size of a unit is equal to the size of a pixel at the current zoom level when the camera position's tilt is equal to 0 and the scale factor is equal to 1.
final
turnRadius double
Maximum radius of a turn. Measured in units. Default: 10.
final

Methods

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

Operators

operator ==(covariant LineStyle other) bool
The equality operator.
override