childScrollOffset method

double? childScrollOffset(
  1. covariant RenderObject child
)

Returns the scroll offset for the leading edge of the given child.

The child must be a child of this sliver.

This method differs from childMainAxisPosition in that childMainAxisPosition gives the distance from the leading visible edge of the sliver whereas childScrollOffset gives the distance from sliver's zero scroll offset.

Implementation

double? childScrollOffset(covariant RenderObject child) {
  assert(child.parent == this);
  return 0.0;
}