drawPath method
Draws the given Path with the given Paint.
Whether this shape is filled or stroked (or both) is controlled by Paint.style. If the path is filled, then sub-paths within it are implicitly closed (see Path.close).
Implementation
@override
void drawPath(Path path, Paint paint) {
if (paint.style == PaintingStyle.fill) {
addSkeleton(path.getBounds(), paint.color);
} else {
final List<Skeleton>? skeletons = WireframeUtils.skeletonsFromBorderRect(
path.getBounds(),
paint.color,
paint.strokeWidth,
);
if (skeletons == null) {
return;
}
for (final Skeleton skeleton in skeletons) {
addSkeleton(skeleton.rect!, skeleton.color);
}
}
}