How do you update value in flutter?

To update the value of data points, re-initialize the data source collection and use the setState() method . In the following example, we have called the setState() method in the onPressed() event of a button. For more information, refer to the Updating the Existing Flutter Chart Data Point Value project demo.

Read more