computeChildPositions method

  1. @override
List<int> computeChildPositions()
override

Compute children positions. Abstract.

Implementation

@override
List<int> computeChildPositions() {
  var curPos = 1;
  return List.generate(children.length + 1, (index) {
    if (index == 0) return curPos;
    return curPos += children[index - 1].editingWidth;
  }, growable: false);
}