double updateExtents({double contentExtent, double containerExtent, double scrollOffset: 0.0 })

Updates either content or container extent (or both)

Returns the new scroll offset of the widget after the change in extent.

The scrollOffset parameter is the scroll offset of the widget before the change in extent.

Source

double updateExtents({
  double contentExtent,
  double containerExtent,
  double scrollOffset: 0.0
}) {
  assert(minScrollOffset <= maxScrollOffset);
  if (contentExtent != null)
    _contentExtent = contentExtent;
  if (containerExtent != null)
    _containerExtent = containerExtent;
  return scrollOffset.clamp(minScrollOffset, maxScrollOffset);
}