remove method

  1. @override
void remove(
  1. Node child
)
override

Remove a child node.

Implementation

@override
void remove(Node child) {
  if (child._parent != this) {
    throw Exception('Child is not attached to this node');
  }
  children.remove(child);
  child._parent = null;
}