getPaths method
Returns the combined path of all the graphics in the drawing queue.
The paths are combined using PathOperation.union. This method is only supported on platforms that uses Skia engine.
Implementation
Path getPaths() {
var output = Path();
if (SystemUtils.usingSkia) {
for (var graph in _drawingQueue) {
/// unsupported on web.
output = Path.combine(PathOperation.union, output, graph!.path!);
}
} else {
trace('Graphics.getPaths() is unsupported in the current platform.');
}
return output;
}