how to set a timer for a function in flutter code example
Example: timer in flutter
Future.delayed(Duration(seconds: 1), () {
print('yo hey');
});
Future.delayed(Duration(seconds: 1), () {
print('yo hey');
});