getPoints method

dynamic getPoints([
  1. num divisions = 5
])

Implementation

getPoints([num divisions = 5]) {
  var points = [];

  for (var d = 0; d <= divisions; d++) {
    points.add(getPoint(d / divisions, null));
  }

  return points;
}