Check out example codes for "timer in flutter". It will help you in understanding the concepts better.

Code Example 1

Future.delayed(Duration(seconds: 1), () {
            print('yo hey');
          });

Learn ReactJs, React Native from akashmittal.com