sliverIsBeforeSliverWithOffsetEstimation method

bool sliverIsBeforeSliverWithOffsetEstimation(
  1. RenderSuperSliverList s
)

Implementation

bool sliverIsBeforeSliverWithOffsetEstimation(RenderSuperSliverList s) {
  assert(sliversDuringLayout.contains(s));
  if (sliverWithOffsetEstimation == null) {
    return false;
  }
  final index = sliversDuringLayout.indexOf(sliverWithOffsetEstimation!);
  return index ==
          -1 // not reached yet
          ||
      index > sliversDuringLayout.indexOf(s);
}