container property Null safety

bool container

If 'container' is true, this RenderObject will introduce a new node in the semantics tree. Otherwise, the semantics will be merged with the semantics of any ancestors.

Whether descendants of this RenderObject can add their semantic information to the SemanticsNode introduced by this configuration is controlled by explicitChildNodes.

Implementation

bool get container => _container;
void container=(bool value)

Implementation

set container(bool value) {
  assert(value != null);
  if (container == value)
    return;
  _container = value;
  markNeedsSemanticsUpdate();
}