matchesIntersecting method

bool matchesIntersecting(
  1. IntersectionObserverEntry info
)

Returns true if the specified IntersectionObserverEntry object has equivalent visibility to this one.

Implementation

bool matchesIntersecting(IntersectionObserverEntry info) {
  // We don't override `operator ==` so that object equality can be separate
  // from whether two [IntersectionObserverEntry] objects are sufficiently similar
  // that we don't need to fire callbacks for both.  This could be pertinent
  // if other properties are added.
  return size == info.size && intersectionRect == info.intersectionRect;
}