flutter wait for code to complete then code example Example: flutter wait for specific time await Future.delayed(const Duration(seconds: 2), (){});