Compute width from children. Abstract.
@override int computeWidth() => children.map((child) => child?.capturedCursor ?? 0).sum + 1;