how to make a method wait for seconds in flutter code example Example: flutter wait for specific time await Future.delayed(const Duration(seconds: 2), (){});