compoundPath property
BoundedPath
compoundPath
Implementation
BoundedPath get compoundPath {
var compoundPath = _compoundPath;
if (compoundPath == null) {
final paths = this.paths;
if (paths.length == 1) {
compoundPath = paths.first;
} else {
final linesPath = Path();
for (final line in paths) {
linesPath.addPath(line.path, Offset.zero);
}
compoundPath = BoundedPath(linesPath);
}
_compoundPath = compoundPath;
}
return compoundPath;
}