Closed KlausJokisuo closed 1 year ago
I honestly wonder how these packages manage to know when an object ist used anymore. If you can explain it to me how you would do it I m open for adding it. You always can use pushScope to limit the live time of objects to that of a widget.
Thomas Am 13. Juli 2023, 07:59 +0200 schrieb Klaus Jokisuo @.***>:
Is it possible to automatically dispose a instance when it's no longer used anywhere? Similarly how Provider and flutter_bloc does? Thanks 👍 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Actually, I don't think there is a need for such a feature after all. In edge cases, scopes will be sufficient. Thanks 👍
Is it possible to automatically dispose a instance when it's no longer used anywhere? Similarly how Provider and flutter_bloc does?
Thanks 👍