if there are multiple setState in a file then you have to use if check every where that is very difficult. So use setState override method. And then use setState as you like to use. @override void setState(VoidCallback fn){ if(mounted){ super.setState(fn); } }
a whole nigh when last night i'm confused for memory leaks like that , dude thanks it's work perfectly 😂
Thank you! Programmers are always at a loss. LOL
please subscribe
what mounted contains?
if there are multiple setState in a file then you have to use if check every where that is very difficult. So use setState override method. And then use setState as you like to use.
@override
void setState(VoidCallback fn){
if(mounted){
super.setState(fn);
}
}
easy like that? like abc? i'll try
hahahaha
yah abc
please subscribe