LineOptions class

Configuration options for Line instances.

When used to change configuration, null values will be interpreted as "do not change this configuration option".

Constructors

LineOptions.new({String? lineJoin, double? lineOpacity, String? lineColor, double? lineWidth, double? lineGapWidth, double? lineOffset, double? lineBlur, String? linePattern, List<LatLng>? geometry, String? encodedGeometry, int? encodedGeometryPrecision, bool? draggable})
Creates a set of line configuration options.
const

Properties

draggable bool?
final
encodedGeometry String?
Encoded polyline string for better performance with large datasets. This takes precedence over geometry if both are provided. The string should be encoded using polyline encoding algorithm.
final
encodedGeometryPrecision int?
Precision used for encoding the geometry string. Default precision is 5 if not specified. This is only used when encodedGeometry is provided.
final
geometry List<LatLng>?
Traditional geometry as a list of LatLng points. This will be ignored if encodedGeometry is provided.
final
hashCode int
The hash code for this object.
no setterinherited
lineBlur double?
final
lineColor String?
final
lineGapWidth double?
final
lineJoin String?
final
lineOffset double?
final
lineOpacity double?
final
linePattern String?
final
lineWidth double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith(LineOptions changes) LineOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGeoJson() Map<String, dynamic>
toJson([bool addGeometry = true]) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultOptions → const LineOptions