computeCaretPositions method
Implementation
List<int> computeCaretPositions() {
var curPos = 1;
return List.generate(flattenedChildList.length + 1, (index) {
if (index == 0) return curPos;
return curPos += flattenedChildList[index - 1].editingWidth;
}, growable: false);
}