How do I set timeout in flutter?

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.

Sizin İçin Seçtik  1 ekmek kaç Tenge?

Leave a Reply

Your email address will not be published. Required fields are marked *