LazyLoadingList constructor

const LazyLoadingList({
  1. Key? key,
  2. required Function loadMore,
  3. required Widget child,
  4. required int index,
  5. required bool hasMore,
  6. int initialSizeOfItems = 10,
})

Lazy loading Widget to load more items by the index of the item to increment you a list like infinite scroll.

Implementation

const LazyLoadingList({
  Key? key,
  required this.loadMore,
  required this.child,
  required this.index,
  required this.hasMore,
  this.initialSizeOfItems = 10,
}) : super(key: key);