remove method

bool remove(
  1. T displayObject
)

Implementation

bool remove(T displayObject) {
  final index = _children.indexOf(displayObject);
  if (index >= 0) parent.removeChildAt(index);
  return index >= 0;
}