replaceChild method

  1. @nonVirtual
  2. @override
Node? replaceChild(
  1. Node newNode,
  2. Node oldNode
)
override

Implementation

@nonVirtual
@override
dom.Node? replaceChild(dom.Node newNode, dom.Node oldNode) {
  dom.Node? replaced = super.replaceChild(newNode, oldNode);

  if (_state != null) {
    _state!.markChildrenNeedsUpdate();
  }

  return replaced;
}