estimateMaxScrollOffset method
- SliverConstraints constraints,
- {int firstIndex,
- int lastIndex,
- double leadingScrollOffset,
- 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,
);
}