buildList method
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;
},
);
}
);
}