Path class Null safety

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

Implemented types

Constructors

Path({required List<Location> points, int? weight, int? radius, Color? color, Color? fillColor, bool? geodesic})
const

Properties

color Color?
(optional) Specifies a path color;
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
hashCode int
The hash code for this object. [...]
read-only, inherited
points List<Location>
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. [...]
final
radius int?
(optional) Circle radius in meters. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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