clipToSize property
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;
Implementation
set clipToSize(bool value) {
assert(value != null);
assert(
!renderChildrenOutsideViewport || !clipToSize,
clipToSizeAndRenderChildrenOutsideViewportConflict,
);
if (value == _clipToSize)
return;
_clipToSize = value;
markNeedsPaint();
markNeedsSemanticsUpdate();
}