setPolyLine abstract method
Method is used to specify the source polyline for the points.
polyline Metrics coordinates of the polyline LocationPolyline.
Returns true if the operation is successful, false otherwise.
Example:
// Set dotted polyline geometry
List<Point> dottedPoints = [
Point(0.0, 100.0),
Point(50.0, 150.0),
Point(100.0, 100.0),
Point(150.0, 150.0),
];
Polyline dottedPolyline = Polyline(dottedPoints);
LocationPolyline locationDottedPolyline = LocationPolyline(
dottedPolyline,
1,
0,
);
bool success = _dottedPolylineMapObject!.setPolyLine(
locationDottedPolyline,
);
print("Set dotted polyline geometry: $success");
Implementation
bool setPolyLine(LocationPolyline polyline);