How to call a stateNotifierProvider method from a widget dispose method #1610
Unanswered
SamiAlsubhi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Move it to deactive() override instead of dispose(), |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to call a StateNotifierProvier method from within a dispose method of a widget:
But I get this error:
How can I achieve this?
From what I understand is that this provider is affecting a parent widget and this is not acceptable move inside a child's dispose.
But what could be the solution to this?
Beta Was this translation helpful? Give feedback.
All reactions