LoadMode.whenInViewport constructor

LoadMode.whenInViewport(
  1. Stream<ScrollPosition> checkIfInViewport, {
  2. int? pixelOffset,
})

factory method to create a class WhenInViewport

Implementation

factory LoadMode.whenInViewport(
  Stream<ScrollPosition> checkIfInViewport, {
  int? pixelOffset,
}) {
  return WhenInViewport(
    checkIfInViewport: checkIfInViewport,
    pixelOffset: pixelOffset,
  );
}