addChildren method

void addChildren(
  1. List<Box> children
)

Adds multiple children to this parent box.

All children are appended to the end of the children list and the layout is marked as needing an update.

Implementation

void addChildren(List<Box> children) {
  _attachChildren([..._children, ...children]);
  markNeedsLayout();
}