final PagingController<int, Item> _pagingController = PagingController(firstPageKey: 0);
// first calling of setter
// build the widget for the first time
_pagingController.itemList = [ {"id": 1, "content": "none" }, { "id": 2, "content": "none" }]
// second calling of setter
// two widgets are displayed
// I don't need to update the widget of item which id is 1 because the data is not changed. But when I use the itemList setter function, it updates all.
_pagingController.itemList = [ {"id": 1, "content": "none" }, { "id": 2, "content": "this field was updated" }]
So I want to update only item which id is 2 for the second calling of itemList setter.
Is there any way to achieve this?
So I want to update only item which id is 2 for the second calling of itemList setter. Is there any way to achieve this?