buildStreamBuilder method
Implementation
Widget buildStreamBuilder(){
final skeletalLoading = curModel.skeletalLoading ?? false;
return StreamBuilder(
initialData: NUIListViewModel<T, C>(skeletalLoading: skeletalLoading, paginationLoading: !skeletalLoading, data: curModel.data, message: null),
stream: bloc!.stream,
builder: (BuildContext context, AsyncSnapshot snapshot) {
NUIListViewModel<T, C> model = snapshot.data;
prevModel = curModel;
curModel = model;
return updateList();
},
);
}