How is Whencompleted () different from then () in Future?

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 .

Sizin İçin Seçtik  How do you deal with Future in Flutter?

Leave a Reply

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