IntersectionObserverLayer constructor
IntersectionObserverLayer({
- required Size elementSize,
- required Offset paintOffset,
- required IntersectionChangeCallback? onIntersectionChange,
- required Rect intersectPadding,
Implementation
IntersectionObserverLayer(
{required Size elementSize, required Offset paintOffset, required this.onIntersectionChange, required Rect intersectPadding})
: // TODO: This is zero for box element. For sliver element, this offset points to the start of the element which may be outside the viewport.
_elementOffset = Offset.zero,
_elementSize = elementSize,
_intersectPadding = intersectPadding,
_paintOffset = paintOffset;