When complete vs then Flutter?

. whenComplete will fire a function either when the Future completes with an error or not, instead . then will fire a function after the Future completes without an error. This is the asynchronous equivalent of a “finally” block.

Sizin İçin Seçtik  What is Future async and await in Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *