scrollWidth property

double get scrollWidth

Implementation

double get scrollWidth {
  if (!isRendererAttached) {
    return 0.0;
  }
  _ensureRenderObjectHasLayout();
  WebFScrollable? scrollable = _getScrollable(Axis.horizontal);
  if (scrollable?.position?.maxScrollExtent != null) {
    return renderBoxModel!.clientWidth + scrollable!.position!.maxScrollExtent;
  }
  Size scrollContainerSize = renderBoxModel!.scrollableSize;
  return scrollContainerSize.width;
}