first you assign your _getData() future function to a variable (_myData) with the same return type, after that, you can override it’s value in setState() that will rebuild the UI and therefor run the future again. Show activity on this post. You can refresh widget by clicking on FlatButton .6 Kas 2018
Read moreHow does Hot reload work in flutter?
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM) . After the VM updates classes with the new versions of fields and functions, the Flutter framework automatically rebuilds the widget tree, allowing you to quickly view the effects of your changes.
Read more