getTargetStartOffset method

Offset getTargetStartOffset(
  1. List<Size>? sizeList,
  2. int index
)

Implementation

Offset getTargetStartOffset(List<Size>? sizeList, int index) {
  double width = 0;
  double height = 0;

  if (sizeList != null) {
    for (int i = 0; i < index; i++) {
      width += sizeList[i].width;
      height += sizeList[i].height;
    }
  }

  return Offset(width, height);
}