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 moreWhat is ValueNotifier flutter?
ValueNotifier is a special type of class that extends Changenotifier, which can hold a single value and notifies the widgets which are listening to it whenever its holding value gets change .15 Eki 2021
Read more