In Async Code await Future.delayed(Duration(seconds: 1)); In Sync Code import 'dart:io'; sleep(Duration(seconds:1));