LineString.fromPoints constructor

LineString.fromPoints({
  1. BBox? bbox,
  2. required List<Point> points,
})

Implementation

LineString.fromPoints({BBox? bbox, required List<Point> points})
    : assert(points.length >= 2),
      super.withType(points.map((e) => e.coordinates).toList(),
          GeoJSONObjectType.lineString,
          bbox: bbox);