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 _offset = offset + i / divisions;
    if (_offset > 1.0) {
      _offset = _offset - 1.0;
    }

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

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

  return points;
}