get_it
get_it copied to clipboard
Get instances which are ready
Is it possible to get instances that are ready?
For example, when a user logs out, I need to reset all instances (repositories). If I use the reset method error will be thrown if one of those is not ready.
Thanks 👍
you can use the allReady or isReady method after a reset. But I would recommend using scopes to handle you example with a user logging out.