Path class abstract

The path class defines a set of one or more locations connected by a path to overlay on the map image.

Implemented types
Implementers

Constructors

Path({required List<GeocodedLocation> points, bool encoded, int? weight, Color? color, Color? fillColor, bool? geodesic})
Draws a path
const
factory
Path.circle({required Location center, required int radius, int detail, bool encoded, int? weight, Color? color, Color? fillColor, bool? geodesic})
Draws a circle path.
const
factory
Path.encodedPolyline(String encodedPolyline, {int? weight, Color? color, Color? fillColor, bool? geodesic})
Draws a path from the provided encoded polyline string.
const
factory

Properties

color Color?
(optional) Specifies a path color;
final
encoded bool
Setting this value to true enables a polyline encoding
final
fillColor Color?
(optional) indicates both that the path marks off a polygonal area and specifies the fill color to use as an overlay within that area. The set of locations following need not be a "closed" loop; the Maps Static API server will automatically join the first and last points. Note, however, that any stroke on the exterior of the filled area will not be closed unless you specifically provide the same beginning and end location.
final
geodesic bool?
(optional) indicates that the requested path should be interpreted as a geodesic line that follows the curvature of the earth. When false, the path is rendered as a straight line in screen space. Defaults to false.
final
hasAddressPoints bool
no setter
hashCode int
The hash code for this object.
no setterinherited
points List<GeocodedLocation>
In order to draw a path, the path class must also be passed two or more points. The Maps Static API will then connect the path along those points, in the specified order.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight int?
(optional) specifies the thickness of the path in pixels. If no weight parameter is set, the path will appear in its default thickness (5 pixels).
final

Methods

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

Operators

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