remove method

void remove(
  1. RenderBox child
)

Removes child.

Implementation

void remove(RenderBox child) {
  final wasOwned =
      identical(child.parent, this) &&
      children.any((candidate) => identical(candidate, child));
  try {
    dropChild(child);
  } finally {
    if (wasOwned &&
        child.parent == null &&
        !children.any((candidate) => identical(candidate, child))) {
      _childrenData.remove(child);
    }
  }
}