getPathCache method

Path? getPathCache(
  1. int index
)

Implementation

Path? getPathCache(int index) {
  if (_pathMap.containsKey(index)) {
    return _pathMap[index];
  } else {
    Path path = Path();

    bool init = true;

    this.seriesMap![index]!.forEach((p) {
      if (init) {
        init = false;
        path.moveTo(p.chartPoint.x, p.chartPoint.y);
      }

      path.lineTo(p.chartPoint.x, p.chartPoint.y);
    });

    _pathMap[index] = path;

    return path;
  }
}