fluttercommunity / get_it

Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamoteur
https://pub.dev/packages/get_it
MIT License
1.36k stars 147 forks source link

[Question] GetItAll from one type? #75

Open rafaelcorbellini-egsys opened 4 years ago

rafaelcorbellini-egsys commented 4 years ago

Is there any way to get everyone of a kind?

example when logging out of the application I want to get all objects registered as DAO and perform a function of them.

escamoteur commented 8 months ago

Yes please. I have to add the option to return all instances of all scopes. I hope to do it tomorrow Am 24. Feb. 2024, 18:00 +0100 schrieb Thomas Pucci @.***>:

Hi, I'm implemented that feature but haven't tested it yet. See #354 It would be awesome if one of you could write some tests for it and and a section in the readme. Hey! I've tried the feature. There is a little bug and the fix is easy. Otherwise, it seems good! ๐Ÿ™‚ Should I make a PR ? โ€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

tpucci commented 8 months ago

Here you go: #355 Cheers! ๐Ÿ˜ƒ

tpucci commented 8 months ago

Can we merge this @escamoteur ? ๐Ÿ™‚ #355

escamoteur commented 8 months ago

Sorry, had no time yet, will do today, Am 21. Mรคrz 2024, 09:13 +0100 schrieb Thomas Pucci @.***>:

Can we merge this @escamoteur ? ๐Ÿ™‚ #355 โ€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

escamoteur commented 7 months ago

if anyone of you have time to add some docs on this new function (we now also have the async version) https://github.com/fluttercommunity/get_it/pull/361 to the readme, I would be really thankful as I don't have a lot of time at the moment

hughesjs commented 7 months ago

if anyone of you have time to add some docs on this new function (we now also have the async version) #361 to the readme, I would be really thankful as I don't have a lot of time at the moment

Yeah, I can probably document this (or at least start on documenting it) this afternoon.

escamoteur commented 7 months ago

That would be awesome. currently I didn't have time to add the alallScopes parameter. I try to do that the next days

hughesjs commented 7 months ago

Is this all merged into main? Just so I know where to branch from.

escamoteur commented 7 months ago

yep

hughesjs commented 7 months ago

How's this? https://github.com/fluttercommunity/get_it/pull/363

escamoteur commented 6 months ago

Hi friends, may I ask you for one more help on this? I just added the fromAllScopes parameter to getAll and getAllAsync plus fixing some other stuff which took me almost all day. Could one of you add tests for this latest changes, I have to get back to my project.

hughesjs commented 6 months ago

Sorry, I've not really used the scopes functionality of GetIt, so I wouldn't be the best person to write this

escamoteur commented 6 months ago

No problem Nachricht von James H @.***> am May 14, 2024, 2:27 PM +0200:

Sorry, I've not really used the scopes functionality of GetIt, so I wouldn't be the best person to write this โ€” Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>