setTimeout in Flutter var duration = Duration(seconds: _priceUpdateFrequency); // Following timer fires one time only. Timer(duration, _getNewPrices); To create Timer, you will create a Duration object where you will specify interval after which you want the action to execute.