estimateMaxScrollOffset method

double? estimateMaxScrollOffset(
  1. int firstIndex,
  2. int lastIndex,
  3. double leadingScrollOffset,
  4. double trailingScrollOffset

Returns an estimate of the max scroll extent for all the children.

Subclasses should override this function if they have additional information about their max scroll extent.

The default implementation returns null, which causes the caller to extrapolate the max scroll offset from the given parameters.


double? estimateMaxScrollOffset(
  int firstIndex,
  int lastIndex,
  double leadingScrollOffset,
  double trailingScrollOffset,
) => null;