supportsIntersectionObserver top-level property

bool supportsIntersectionObserver
final

Whether the browser supports IntersectionObserver.

Implementation

final bool supportsIntersectionObserver =
    js.context.hasProperty('IntersectionObserver');