estimateMaxScrollOffset method

  1. @protected
double estimateMaxScrollOffset (SliverConstraints constraints, { int firstIndex, int lastIndex, double leadingScrollOffset, double trailingScrollOffset })
@protected

Called to estimate the total scrollable extents of this object.

Must return the total distance from the start of the child with the earliest possible index to the end of the child with the last possible index.

By default, defers to RenderSliverBoxChildManager.estimateMaxScrollOffset.

See also:

Implementation

@protected
double estimateMaxScrollOffset(
  SliverConstraints constraints, {
  int firstIndex,
  int lastIndex,
  double leadingScrollOffset,
  double trailingScrollOffset,
}) {
  return childManager.estimateMaxScrollOffset(
    constraints,
    firstIndex: firstIndex,
    lastIndex: lastIndex,
    leadingScrollOffset: leadingScrollOffset,
    trailingScrollOffset: trailingScrollOffset,
  );
}