PointSeries<E extends Point<num>>.make constructor

PointSeries<E extends Point<num>>.make(
  1. Iterable<Iterable<num>> values,
  2. PointFactory<E> pointFactory, {
  3. Bounds<Point<num>>? bounds,
})

Create PointSeries from values with a list of points.

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

Implementation

factory PointSeries.make(
  Iterable<Iterable<num>> values,
  PointFactory<E> pointFactory, {
  Bounds? bounds,
}) =>
    PointSeries<E>.from(
      values.map<E>((coords) => pointFactory.newFrom(coords)),
      bounds: bounds,
    );