title: How to fetch data (method call) every five seconds in Flutter?
body: <p>In JavaScript, I could constantly fetch data without an explicit request from the user by calling a function <code>fetchData()</code> every five seconds using <code>setInterval(function() { fetchData() }, 5000);</code> and this is an incredibly useful tool for me. Is there a similar equivalent in Flutter? </p>