IntersectionObserver constructor Null safety
- 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);
}