measureItems method

  1. @override
Future<_Measure> measureItems(
  1. _Cancelled? cancelled,
  2. int count,
  3. IndexedWidgetBuilder builder, [
  4. double startingSize = 0,
  5. int startingCount = 0,
])

Measures the size of a bunch of off-list children up to count elements. You have to provide a builder to build the i-th widget. The calculation is asynchronous and can be cancelled.

Implementation

@override
Future<_Measure> measureItems(
    _Cancelled? cancelled, int count, IndexedWidgetBuilder builder,
    [double startingSize = 0, int startingCount = 0]) async {
  return await renderObject.measureItems(
      cancelled, count, builder, startingSize, startingCount);
}