How can trigger a method when a widget is dispose? #3251
Unanswered
Trung15010802
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to excecute some method when widget is disposed but always got this error:
"Error: Bad state: Cannot use "ref" after the widget was disposed."
My provider is not auto disposed so i cannot use ref.onDispose()
Beta Was this translation helpful? Give feedback.
All reactions