getListView method

  1. @override
Widget getListView(
  1. int initialCount
)
override

Implementation

@override
Widget getListView(int initialCount) {
  return SliverAnimatedList(
      key: sliverListKey,
      initialItemCount: initialCount,
      itemBuilder: (context, position, animation){
        if(position < items.length) {
          return animateItem(context, position, animation);
        }
        return SizedBox.shrink();
      }
    );
}