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 clipBehavior is not Clip.none 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 || clipBehavior == Clip.none,
    clipBehaviorAndRenderChildrenOutsideViewportConflict,
  );
  if (value == _renderChildrenOutsideViewport)
    return;
  _renderChildrenOutsideViewport = value;
  markNeedsLayout();
  markNeedsSemanticsUpdate();
}