I've just upgraded to the major version of flutter lints and I faced this warning about using BuildContext in async methods. I found some answers for this issue without state management, but I don't understand how to use "mounted" in my provider or how to just make it the right way The warning in async method
Asked
Active
Viewed 76 times
0
-
Show the code where the warning is. – Alraj Sep 09 '22 at 10:28
-
@Alraj attached. I'm just wondering how to make it the right way when it's used in bloc/provider or something else – artemniy Sep 09 '22 at 14:12
-
Please provide enough code so others can better understand or reproduce the problem. – Community Sep 12 '22 at 01:46