computeChildPositions method

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

Compute children positions. Abstract.

Implementation

@override
List<int> computeChildPositions() {
  var curPos = 0;
  final result = <int>[];
  for (final child in children) {
    result.add(curPos);
    curPos += child?.capturedCursor ?? 0;
  }
  return result;
}