addChild method

void addChild(
  1. Box child
)

Implementation

void addChild(Box child) {
  _attachChildren([..._children, child]);
  markNeedsLayout();
}