setstate-is-not-working-in-async-calls-in-flutter
Error:
Instead of performing asynchronous work inside a call to setState(), first execute the work (without updating the widget state), and then synchronously update the state inside a call to setState().
SOLUTION
remove asyn and await from methods
Top comments (0)