offstage property

bool get offstage

Whether the sliver child is hidden from the rest of the tree.

If true, the sliver child is laid out as if it was in the tree, but without painting anything, without making the sliver child available for hit testing, and without taking any room in the parent.

If false, the sliver child is included in the tree as normal.

Implementation

bool get offstage => _offstage;
set offstage (bool value)

Implementation

set offstage(bool value) {
  if (value == _offstage) {
    return;
  }
  _offstage = value;
  markNeedsLayoutForSizedByParentChange();
}