async , await , then

//Import dart async library with the following statement if you are
// working in a local environment, add the following line on top of each code

import "dart:async";

then

chaining "then"

async , await

Flutter provides a high level API called "Futurebuilder" which makes dealing with Future much easier

Last updated

Was this helpful?