visible property

bool get visible

Whether this node and its subtree are drawn.

Implementation

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

Implementation

set visible(bool value) {
  // Hiding a branch changes what [visibleInHierarchy] 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++;
}