setTimeout in Flutter To create Timer, you will create a Duration object where you will specify interval after which you want the action to execute . Second parameter is function that will be executed after set duration. This action will execute only one time.