measureItems method

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

Returns the sum of the sizes of a bunch of items, built using the specified builder.

Implementation

@override
Future<_Measure> measureItems(
        _Cancelled? cancelled,
        int count,
        IndexedWidgetBuilder builder,
        double startingSize,
        int startingCount) async =>
    (itemExtent * (count + startingCount)).toExactMeasure();