getAreaPathCache method
Path?
getAreaPathCache(
- int index
)
Implementation
Path? getAreaPathCache(int index) {
if (_areaPathMap.containsKey(index)) {
return _areaPathMap[index];
} else {
Path pathCache = getPathCache(index)!;
Path areaPath = Path();
areaPath.moveTo(pathCache.getBounds().left, pathCache.getBounds().bottom);
areaPath.addPath(pathCache, Offset(0, 0));
areaPath.lineTo(
pathCache.getBounds().right, pathCache.getBounds().bottom);
areaPath.lineTo(pathCache.getBounds().left, pathCache.getBounds().bottom);
_areaPathMap[index] = areaPath;
return areaPath;
}
}