setTimeout method
duration
is the amount of time that Flute wait to call the function.
after x amount of duration
, callback
funciton will be called.
Example
Flute.setTimeout(5, () => debugPrint('5 second passed'));
Implementation
Timer setTimeout(Duration duration, VoidFunction callback) =>
Timer(duration, () => callback());