scrollHeight property

double get scrollHeight

Implementation

double get scrollHeight {
  if (!isRendererAttached) {
    return 0.0;
  }
  _ensureRenderObjectHasLayout();
  WebFScrollable? scrollable = _getScrollable(Axis.vertical);
  if (scrollable?.position?.maxScrollExtent != null) {
    // Viewport height + maxScrollExtent
    return renderBoxModel!.clientHeight + scrollable!.position!.maxScrollExtent;
  }

  Size scrollContainerSize = renderBoxModel!.scrollableSize;
  return scrollContainerSize.height;
}