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

PointSeries<E extends Point<num>>.from(
  1. Iterable<E> source, {
  2. Bounds<Point<num>>? bounds,
})

Create an immutable PointSeries with points copied from source.

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

Implementation

factory PointSeries.from(Iterable<E> source, {Bounds? bounds}) =>
    PointSeries<E>.view(List<E>.unmodifiable(source), bounds: bounds);