lineString method

LineString<PointType> lineString(
  1. Iterable points, {
  2. LineStringType type = LineStringType.any,
})

Parses a line string from series of points.

Throws FormatException if cannot create a line string.

Implementation

LineString<PointType> lineString(
  Iterable<dynamic> points, {
  LineStringType type = LineStringType.any,
}) =>
    LineString<PointType>(pointSeries(points), type: type);