I\'d like to execute a function after a certain delay after my Widget is built. What\'s the idiomatic way of doing this in Flutter?
What I\'m trying to achieve: I\'
Just adding more description over the above answers
The Timer functionality works with below duration time also:
const Duration(
{int days = 0,
int hours = 0,
int minutes = 0,
int seconds = 0,
int milliseconds = 0,
int microseconds = 0})
Example:
Timer(Duration(seconds: 3), () {
print("print after every 3 seconds");
});