renderChildrenOutsideViewport property

bool renderChildrenOutsideViewport

Whether to paint children inside the viewport only.

If false, every child will be painted. However the Scrollable is still the size of the viewport and detects gestures inside only.

Defaults to false. Must not be null. Cannot be true if clipToSize is also true since children outside the viewport will be clipped, and therefore cannot render children outside the viewport.

Implementation

bool get renderChildrenOutsideViewport => _renderChildrenOutsideViewport;
void renderChildrenOutsideViewport= (bool value)

Implementation

set renderChildrenOutsideViewport(bool value) {
  assert(value != null);
  assert(
    !renderChildrenOutsideViewport || !clipToSize,
    clipToSizeAndRenderChildrenOutsideViewportConflict,
  );
  if (value == _renderChildrenOutsideViewport)
    return;
  _renderChildrenOutsideViewport = value;
  markNeedsLayout();
  markNeedsSemanticsUpdate();
}