copyTo static method

Implementation

static copyTo(RenderIntersectionObserverMixin from,
    RenderIntersectionObserverMixin to) {
  to.intersectPadding = from.intersectPadding;
  to._listeners = from._listeners;
  to._onIntersectionChange = to._dispatchChange;
  to._intersectionObserverLayer.layer = from._intersectionObserverLayer.layer;
  to._intersectionObserverLayer.layer?.onIntersectionChange =
      to._dispatchChange;
}