removeChild method

  1. @override
void removeChild(
  1. Bitmap child
)
override

Implementation

@override
void removeChild(Bitmap child) {
  if (child.parent != this) {
    throw ArgumentError('The supplied Bitmap must be a child of the caller.');
  } else {
    final index = _children.indexOf(child);
    child._parent = null;
    _children.removeAt(index);
  }
}