estimatedChildCount property

  1. @override
int? get estimatedChildCount
override

The best available estimate of childCount, or null if no estimate is available.

This differs from childCount in that childCount never returns null (and must not be accessed if the child count is not yet available, meaning the createChild method has not been provided an index that does not create a child).

See also:

Implementation

@override
int? get estimatedChildCount => (widget as SliverMultiBoxAdaptorWidget).delegate.estimatedChildCount;