The SDK allows you to easily plot a path on the map using the StaticMapPath class. This class allows you to specify the size, color, outline, and the polyline to be drawn on the map.
You can provide a list of points directly, and leave it to our package to encode the polyline for you. Use the StaticMapPath.points() constructor, example:
Avoid passing a large list of points directly, otherwise users can experience jank during encoding. Instead, install the google_polyline_algorithm package and encode the polyline in an isolate.