estimateMaxScrollOffset method

  1. @override
double estimateMaxScrollOffset (
  1. SliverConstraints constraints,
  2. {int firstIndex,
  3. int lastIndex,
  4. double leadingScrollOffset,
  5. double trailingScrollOffset}
)
override

Copied from SliverMultiBoxAdaptorElement.estimateMaxScrollOffset. The AnimatedSliverChildBuilderDelegate.estimateMaxScrollOffset method call has been removed just now.

Implementation

@override
double estimateMaxScrollOffset(
  final SliverConstraints constraints, {
  final int firstIndex,
  final int lastIndex,
  final double leadingScrollOffset,
  final double trailingScrollOffset,
}) {
  final childCount = estimatedChildCount;
  if (childCount == null) return double.infinity;
  return
      /*widget.estimateMaxScrollOffset(
            constraints,
            firstIndex,
            lastIndex,
            leadingScrollOffset,
            trailingScrollOffset,
          ) ??*/
      _extrapolateMaxScrollOffset(
    firstIndex,
    lastIndex,
    leadingScrollOffset,
    trailingScrollOffset,
    childCount,
  );
}