getSpacedPoints method

  1. @override
dynamic getSpacedPoints([
  1. num divisions = 40,
  2. num offset = 0.0
])
override

Implementation

@override
getSpacedPoints([num divisions = 40, num offset = 0.0]) {
  var points = [];

  for (var i = 0; i <= divisions; i++) {
    var offset2 = offset + i / divisions;
    if (offset2 > 1.0) {
      offset2 = offset2 - 1.0;
    }

    points.add(getPoint(offset2, null));
  }

  if (autoClose) {
    points.add(points[0]);
  }

  return points;
}