buildList method

Widget buildList({
  1. Widget? otherView,
})

Implementation

Widget buildList({Widget? otherView}){
  return NUIStateful<List<dynamic>>(
      id: instanceId,
      initial: items,
      child: (newList){
        return NotificationListener(
          child: getListViewBuilder(otherView: otherView),
          onNotification: (notification){
            if(notification is ScrollNotification){
              offset = notification.metrics.pixels;
              onScroll(notification.metrics);
            }
            return true;
          },
        );
      }
  );
}