toLineString method Null safety

LineString toLineString()

Uses the Polygon's coordinates to make a LineString. Ignores any holes in the polygon.

Implementation

LineString toLineString() {
  return LineString(coordinates.first.coordinates);
}