scrollHeight property

  1. @override
int get scrollHeight
inherited

The total scrollable content height

Implementation

@override
int get scrollHeight {
  int bodyScrollHeight = 0;
  if (_window.document is HtmlDocument) {
    var htmlDoc = _window.document as HtmlDocument;
    bodyScrollHeight = htmlDoc.body!.scrollHeight;
  }
  return max(
      bodyScrollHeight, _window.document.documentElement!.scrollHeight);
}