Hi@akhtar,
Future is a type that ‘comes from the future’ and returns a value from your asynchronous function. It can complete with success or with an error. You can also see the below-given example.
void main() async {
await waitForMe();
print('I was waiting here :)');
}Future waitForMe() async {
print('Started.');
return Future.delayed(Duration(seconds: 5), () {
print("Now I'm done!");
});
}