removeChildNamed method

void removeChildNamed(
  1. String name,
  2. int multiplicity
)

Removes the child called name with multiplicity, if any.

Implementation

void removeChildNamed(String name, int multiplicity) {
  final child = getChild(name, multiplicity);
  if (child != null) _children.remove(child);
}