paintOffsetOf method

  1. @override
Offset paintOffsetOf(
  1. RenderSliver child
)
override

The offset at which the given child should be painted.

The returned offset is from the top left corner of the inside of the viewport to the top left corner of the paint coordinate system of the child.

See also:

  • computeAbsolutePaintOffset, which computes the paint offset from an explicit layout offset and growth direction instead of using the values computed for the child during layout.

Implementation

@override
Offset paintOffsetOf(RenderSliver child) {
  final SliverLogicalParentData childParentData = child.parentData! as SliverLogicalParentData;
  return computeAbsolutePaintOffset(child, childParentData.layoutOffset!, GrowthDirection.forward);
}