flutter display a 10sec timer code example
Example 1: timer in flutter
Future.delayed(Duration(seconds: 1), () {
print('yo hey');
});
Example 2: flutter performance timer
Stopwatch stopwatch = new Stopwatch()..start();
doSomething();
print('doSomething() executed in ${stopwatch.elapsed}');