ensureChildAttached method

  1. @override
void ensureChildAttached()
inherited

Ensure child and child's child render object is attached.

Implementation

@override
void ensureChildAttached() {
  if (isRendererAttached) {
    for (Node child in childNodes) {
      if (_renderLayoutBox != null && !child.isRendererAttached) {
        RenderBox? after;
        if (scrollingContentLayoutBox != null) {
          after = scrollingContentLayoutBox!.lastChild;
        } else {
          after = _renderLayoutBox!.lastChild;
        }

        child.attachTo(this, after: after);

        child.ensureChildAttached();
      }
    }
  }
}