BoundedSeries<E extends Bounded>.from constructor

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

Create an immutable BoundedSeries with items copied from source.

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

Implementation

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