WhenInViewport constructor
WhenInViewport({
- required Stream<
ScrollPosition> checkIfInViewport, - int? pixelOffset,
load ad when it's in the viewport
Implementation
WhenInViewport({required this.checkIfInViewport, int? pixelOffset})
: assert(
checkIfInViewport.isBroadcast,
'The stream must be of broadcast type.',
),
pixelOffset = pixelOffset ?? 0,
super._();