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 149 forks source link

Add `onCreated: (instance){ }` on lazy and asyncSingletons #319

Open escamoteur opened 1 year ago

escamoteur commented 1 year ago

This could indeed be a nice addition. Not sure if the onCreated should allow async functions because who will await it? Should it be included in the isReady state?

If you think that could be a nice addtion, please give a thumbs up and add a comment