The future class allows us to run asynchronous code and we can also avoid the callback hell with the help of it . A future mainly represents the result of an asynchronous operation. In Dart, there are many standards library calls that return a future, some of them are − http.get. SharedPreference.getInstance()