PolylineMapObject class

Collection of points connected by lines to be displayed on YandexMap

Implemented types

Constructors

PolylineMapObject({required MapObjectId mapId, required Polyline polyline, double zIndex = 0.0, TapCallback<PolylineMapObject>? onTap, bool consumeTapEvents = false, bool isVisible = true, Color strokeColor = const Color(0xFF0066FF), double strokeWidth = 5.0, Color outlineColor = const Color(0x00000000), double outlineWidth = 0.0, double dashLength = 0.0, double dashOffset = 0.0, double gapLength = 0.0, double turnRadius = 10.0, double arcApproximationStep = 12.0, double gradientLength = 0, bool isInnerOutlineEnabled = false})
const

Properties

arcApproximationStep double
Defines step of arc approximation. Smaller values make polyline smoother. Measured in degrees.
final
consumeTapEvents bool
True if the placemark consumes tap events. If not, the map will propagate tap events to other map objects at the point of tap.
final
dashLength double
Length of a dash in units. Default: 0 (dashing is turned off).
final
dashOffset double
Offset from the start of the polyline to the reference dash in units.
final
gapLength double
Length of the gap between two dashes in units. Default: 0 (dashing is turned off).
final
gradientLength double
Maximum length (in units) of the gradient from one color to another.
final
hashCode int
The hash code for this object.
no setterinherited
isInnerOutlineEnabled bool
Enables the inner outline if true (a dark border along the edge of the outline).
final
isVisible bool
Manages visibility of the object on the map.
final
mapId MapObjectId
A unique identifier for this object in the scope of a single YandexMap
final
onTap TapCallback<PolylineMapObject>?
Callback to call when this polyline receives a tap
final
outlineColor Color
Outline color.
final
outlineWidth double
Outline width in units.
final
polyline Polyline
The geometry of the map object.
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
strokeColor Color
Stroke color.
final
strokeWidth double
Stroke width in units.
final
turnRadius double
Maximum radius of a turn. Measured in units.
final
zIndex double
z-order
final

Methods

clone() PolylineMapObject
Returns a duplicate of this object.
override
copyWith({Polyline? polyline, double? zIndex, TapCallback<PolylineMapObject>? onTap, bool? consumeTapEvents, bool? isVisible, Color? strokeColor, double? strokeWidth, Color? outlineColor, double? outlineWidth, double? dashLength, double? dashOffset, double? gapLength, double? turnRadius, double? arcApproximationStep, double? gradientLength, bool? isInnerOutlineEnabled}) PolylineMapObject
dup(MapObjectId mapId) PolylineMapObject
Creates a new copy of T with the same attributes as the original except its id
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this object to something serializable in JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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