scrollHeight property

double get scrollHeight
inherited

Implementation

double get scrollHeight {
  KrakenScrollable? 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;
}