SolidStrokeSymbolLayer class final

A class for stroke symbol layers with customized geometric effects. Currently it supports only dash effects. Commonly used in line symbols to describe the appearance of the line, or in polygon symbols as an outline.

A SolidStrokeSymbolLayer represents a polyline geometry symbolized with a solid color.

This symbol layer, in a MultilayerPolylineSymbol, colors the geometry of the line with the specified solid color. The class also allows setting a collection of geometric effects, which modify the stroke in various ways (see documentation for geometric effects).

The SolidStrokeSymbolLayer is used to represent the Web Scene specification's LineSymbol3DLayer and PathSymbol3DLayer. LineSymbol3DLayer maps to the 'strip' 3D line style of SolidStrokeSymbolLayer, and PathSymbol3DLayer maps to the 'tube' 3D line style.

The SolidStrokeSymbolLayer provides a similar user experience to the SimpleLineSymbol, but, since it is a symbol layer, can be used in a MultilayerSymbol. The simple line styles of the SimpleLineSymbol are represented here by the DashGeometricEffect, but all dash patterns are custom. A solid stroke symbol layer in a multilayer polygon symbol will act as the outline of the fill.

Inheritance

Constructors

SolidStrokeSymbolLayer({double width = 5.333333492279053, Color color = Colors.black, List<GeometricEffect> geometricEffects = const [], StrokeSymbolLayerLineStyle3D lineStyle3D = StrokeSymbolLayerLineStyle3D.strip})
Create a solid stroke symbol layer with width, color, geometric effects and 3D line style.
factory

Properties

capStyle StrokeSymbolLayerCapStyle
The cap style of stroke symbol layer.
getter/setter pairinherited
color Color
The color of a solid stroke symbol layer.
getter/setter pair
colorLocked bool
The symbol layer color locked property.
getter/setter pairinherited
enabled bool
The symbol layer enabled property.
getter/setter pairinherited
geometricEffects List<GeometricEffect>
The collection of geometric effects held by a solid stroke symbol layer.
no setter
hashCode int
The hash code for this object.
no setterinherited
lineStyle3D StrokeSymbolLayerLineStyle3D
The 3D line style of the stroke symbol layer.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
The width of the stroke symbol layer.
getter/setter pairinherited

Methods

clone() SymbolLayer
Clones the SymbolLayer.
inherited
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