You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to automatically unregister a singleton when the widget is unmounted from the widget tree?
The text was updated successfully, but these errors were encountered:
dinbtechit
changed the title
[Question] - Auto-dispose when the widget's is unmounted from the widget tree
[Question] - Auto-dispose Singleton when the widget's is unmounted from the widget tree
Dec 5, 2022
yep it is, with the get_it_mixin you can push a scope when a widget is first displayed and dispose the scope with its widgets when the widget is destroyed
yep it is, with the get_it_mixin you can push a scope when a widget is first displayed and dispose the scope with its widgets when the widget is destroyed
Thank you @escamoteur !! Is there a code example of this?
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to automatically unregister a singleton when the widget is unmounted from the widget tree?
The text was updated successfully, but these errors were encountered: