flutter phone sleep code example Example: flutter sleep await Future.delayed(const Duration(seconds: 1)); sleep(const Duration(seconds: 1));