getAllItems abstract method

FutureOr<List<T>> getAllItems(
  1. int slotCount
)

getAllItems will call if necessary. If your item getter is not Future, do not override as async, because if you use unnecessary Future, layout changes not animated on slotCount changes.

Implementation

FutureOr<List<T>> getAllItems(int slotCount);