paintOffset property

Offset? paintOffset
getter/setter pair

The position of the child relative to the bounds and AxisDirection of the viewport.

This is the distance from the top left visible corner of the parent to the top left visible corner of the child. When the AxisDirections are AxisDirection.down or AxisDirection.right, this value is the same as the layoutOffset. This value deviates when scrolling in the reverse directions of AxisDirection.up and AxisDirection.left to reposition the children correctly.

This is set in RenderTwoDimensionalViewport.updateChildPaintData, after RenderTwoDimensionalViewport.layoutChildSequence.

If overriding RenderTwoDimensionalViewport.paint, use this value to position the children instead of layoutOffset.

Implementation

Offset? paintOffset;