removeChild method

  1. @override
  2. @mustCallSuper
Node removeChild(
  1. Node child
)
override

Implementation

@override
@mustCallSuper
Node removeChild(Node child) {
  if (enableWebFProfileTracking) {
    WebFProfiler.instance.startTrackUICommandStep('Element.removeChild');
  }
  super.removeChild(child);

  // Update renderStyle tree.
  if (child is Element) {
    child.renderStyle.detach();
  }

  if (enableWebFProfileTracking) {
    WebFProfiler.instance.finishTrackUICommandStep();
  }

  return child;
}