PointsColumn constructor

PointsColumn({
  1. required List<StackableValuePoint> points,
})

Construct column from the passed points.

Passed points are assumed to:

Implementation

PointsColumn({
  required List<StackableValuePoint> points,
}) {
  // todo-1 add validation that points are not stacked
  stackableValuePoints = points;

  stackedPositivePoints =
      _selectThenCollectStacked(points: stackableValuePoints, selector: (point) => point.dataY >= 0);
  stackedNegativePoints =
      _selectThenCollectStacked(points: stackableValuePoints, selector: (point) => point.dataY < 0);
}