the hookwidget not rerender after update state object in flutter

后端 未结 0 1345
挽巷
挽巷 2020-11-22 14:35

When I am using this code to update the object of state in flutter:

var counter = useState(item);
item.isFav = 0;
counter.value = item;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题