offstage property Null safety

bool 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.


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


set offstage(bool value) {
  assert(value != null);
  if (value == _offstage) {
  _offstage = value;