getTargetItemScrollEndOffset method
Implementation
Offset getTargetItemScrollEndOffset(List<Size>? sizeList, int index) {
double width = 0;
double height = 0;
for (int i = 0; i <= index; i++) {
width += sizeList![i].width;
height += sizeList[i].height;
}
return Offset(width, height);
}