getPointsHoles method

List<List<Vector?>?> getPointsHoles(
  1. int divisions
)

divisions -- The fineness of the result.

Get an array of Vector2 that represent the holes in the shape.

Implementation

List<List<Vector?>?> getPointsHoles(int divisions) {
  final holesPts = List<List<Vector?>?>.filled(holes.length, null);

  for (int i = 0, l = holes.length; i < l; i++) {
    holesPts[i] = holes[i].getPoints(divisions);
  }

  return holesPts;
}