debugPrint("Logger is => ${newItems.length} and $nextPageKey");
widget.controller.appendPage(newItems, nextPageKey);
debugPrint("Logger value => ${widget.controller.value}");
and this is my logs
Logger is => 10 and 20
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
#0 PagingController.notifyStatusListeners (package:infinite_scroll_pagination/src/core/paging_controller.dart:170)
#1 PagingController.value= (package:infinite_scroll_pagination/src/core/paging_controller.dart:94)
#2 _HomeBusinessListInfiniteState.fetchBusinessInfinitePage (package:wowme/home/views/home_business.dart:121)
Logger value => PagingState(itemList: ┤null├, error: null, nextPageKey: 10)
I added 10 items and 20 nextPageKey but the output log is null and page key is 10.
This is my code
and this is my logs
I added 10 items and 20 nextPageKey but the output log is null and page key is 10.