LineString<T extends Point<num>>.make constructor

LineString<T extends Point<num>>.make(
  1. Iterable<Iterable<num>> values,
  2. PointFactory<T> pointFactory, {
  3. LineStringType type = LineStringType.any,
  4. Bounds<Point<num>>? bounds,
})

Create LineString from values with a chain of points.

An optional bounds can be provided or it's lazy calculated if null.

Implementation

factory LineString.make(
  Iterable<Iterable<num>> values,
  PointFactory<T> pointFactory, {
  LineStringType type = LineStringType.any,
  Bounds? bounds,
}) =>
    LineString<T>(
      PointSeries<T>.make(values, pointFactory, bounds: bounds),
      type: type,
    );