fillSubpaths method

void fillSubpaths(
  1. List<FlatSubpath> subpaths,
  2. PdfFillRule rule,
  3. int rgba
)

Fills already-flattened device-space subpaths (each implicitly closed - PDF fill semantics).

Implementation

void fillSubpaths(List<FlatSubpath> subpaths, PdfFillRule rule, int rgba) {
  if (subpaths.isEmpty || _rowCount == 0) return;
  for (final sub in subpaths) {
    _addRing(sub.points, 0, sub.points.length);
  }
  _finishShape(rule, rgba);
}