Flutter – FutureBuilder Widget
Read moreHow do you deal with Future flutters?
Sometimes you don’t want to turn the function into a Future or mark it async, so the other way to handle a Future is by using the . then function. It takes in a function that will be called with the value type of your Future. It’s similar to a Promise in JavaScript without the resolve, reject explicitness.
Read moreHow do you get rid of futures in darts?
What you can do to resolve your future is, add a . then() after the function call so it waits for the future and when it comes, converts it to the data type that you want .28 Mar 2020
Read more