scrollOffsetOf method Null safety

  1. @protected
double scrollOffsetOf(
  1. RenderSliver child,
  2. double scrollOffsetWithinChild
)
protected">@protected

Returns the scroll offset within the viewport for the given scrollOffsetWithinChild within the given child.

The returned value is an estimate that assumes the slivers within the viewport do not change the layout extent in response to changes in their scroll offset.

Implementation

@protected
double scrollOffsetOf(RenderSliver child, double scrollOffsetWithinChild);