Closed mohadel92 closed 5 months ago
Hi @mohadel92 .
If you want to manually manage the state of the PagingController
, you can use the value
setter from PagingController
and assign a new PagingState
to it.
_pagingController.value = PagingState(
itemList: myItemList,
nextPageKey: nextPageKey,
error: null, // Or an error, if any.
);
I hope this helps to solve your problem.
_pagingController.value = PagingState( itemList: myItemList, nextPageKey: nextPageKey, error: null, // Or an error, if any. ); it's not working, updating itemList, does not refreshing view
hi @braincreator. Sorry for the late response.
Try updating the state of the widget using setState
or any other state management approach
i can't handle how to toggle changes on already loaded data in the pagecontroller is there is a recommended way to handle changes inside current data loaded inside controller?