clipToSize property

bool clipToSize

Whether to clip painted children to the inside of this viewport.

Defaults to true. Must not be null.

If this is false and renderChildrenOutsideViewport is false, the first and last children may be painted partly outside of this scroll view.

Implementation

bool get clipToSize => _clipToSize;
void clipToSize=(bool value)

Implementation

set clipToSize(bool value) {
  assert(
    !renderChildrenOutsideViewport || !clipToSize,
    clipToSizeAndRenderChildrenOutsideViewportConflict,
  );
  if (value == _clipToSize) return;
  _clipToSize = value;
  markNeedsPaint();
  markNeedsSemanticsUpdate();
}