isVisible property

bool get isVisible

Whether this node and its subtree are drawn.

Implementation

bool get isVisible => _visible;
set isVisible (bool value)

Implementation

set isVisible(bool value) {
  // Hiding a branch changes what [isVisibleInHierarchy] answers for everything
  // under it, and that answer is cached on the epoch — `gfx-65n`. Guarded on
  // the value because this is the one setter where the comparison is free and
  // the common write is `visible = visible`: `LodGroup` sets every level's
  // flag every frame to pick one.
  if (_visible == value) return;
  _visible = value;
  _dirtyEpoch++;
}