LineOptions class

Class that defines customization options for lines in the PolarisMapEditor.

Constructors

LineOptions({required double strokeWidth, required Color color, double borderStrokeWidth = 0.0, Color? borderColor = Colors.blue, List<Color>? gradientColors, List<double>? colorsStop, bool isDotted = false, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, bool useStrokeWidthInMeter = false})
Default constructor for LineOptions.
const

Properties

borderColor Color?
The color of the border around the line.
final
borderStrokeWidth double
The width of the border around the line.
final
color Color
The main color of the line.
final
colorsStop List<double>?
Optional list of stop positions for the gradient colors.
final
gradientColors List<Color>?
Optional list of colors for a gradient along the line.
final
hashCode int
The hash code for this object.
no setterinherited
isDotted bool
Whether to draw the line as a dotted line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeCap StrokeCap
The style of the ends of the line.
final
strokeJoin StrokeJoin
The style of the corners where line segments meet.
final
strokeWidth double
The width of the line.
final
useStrokeWidthInMeter bool
Whether to interpret the strokeWidth as meters instead of pixels.
final

Methods

copyWith({double? strokeWidth, Color? color, double? borderStrokeWidth, Color? borderColor, List<Color>? gradientColors, List<double>? colorsStop, bool? isDotted, StrokeCap? strokeCap, StrokeJoin? strokeJoin, bool? useStrokeWidthInMeter}) LineOptions
Creates a copy of this LineOptions object with optional overrides.
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