addChild method

void addChild(
  1. NodeV3 child, [
  2. int? position
])

Implementation

void addChild(NodeV3 child, [int? position]) {
  if (position == null) {
    children.add(child);
  } else {
    children.insert(position, child);
  }
}