appendChild method

  1. @nonVirtual
  2. @override
Node appendChild(
  1. Node child
)
override

Implementation

@nonVirtual
@override
dom.Node appendChild(dom.Node child) {
  super.appendChild(child);

  // Only trigger update if the child are created by JS. If it's created on Flutter widgets, the flutter framework will handle this.
  if (state != null) {
    state!.requestUpdateState();
  }

  return child;
}