addContour static method

void addContour(
  1. List<num> vertices,
  2. List<Vector?> contour
)

Implementation

static void addContour(List<num> vertices, List<Vector?> contour) {
  for (int i = 0; i < contour.length; i++) {
    if(contour[i] != null){
      vertices.add(contour[i]!.x);
      vertices.add(contour[i]!.y);
    }
  }
}