IntersectionObserver constructor
- IntersectionObserverCallback callback,
- [Map? options]
Implementation
factory IntersectionObserver(IntersectionObserverCallback callback, [Map? options]) { if (options != null) { var callback_1 = convertDartClosureToJS(callback, 2); var options_2 = convertDartToNative_Dictionary(options); return IntersectionObserver._create_1(callback_1, options_2); } var callback_1 = convertDartClosureToJS(callback, 2); return IntersectionObserver._create_2(callback_1); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/IntersectionObserver/IntersectionObserver.html