scrollHeight property

int scrollHeight

Implementation

int get scrollHeight {
  KrakenScrollable? scrollable = _getScrollable(Axis.vertical);
  if (scrollable?.position?.maxScrollExtent != null) {
    // Viewport height + maxScrollExtent
    return renderBoxModel!.clientHeight + scrollable!.position!.maxScrollExtent.toInt();
  }

  Size scrollContainerSize = renderBoxModel!.scrollableSize;
  return scrollContainerSize.height.toInt();
}