child property

C? get child

The single child of this render object, or null if none.

Implementation

C? get child => _child;
set child (C? value)

Sets the single child of this render object.

Implementation

set child(C? value) {
  if (_child != null) {
    _child!.parent = null;
  }
  _child = value;
  if (_child != null) {
    _child!.parent = this;
  }
}