Skip to content

Reset a lazy Singleton by providing an instance. #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

jtdLab
Copy link

@jtdLab jtdLab commented Dec 29, 2021

Current version:
GetIt.I.resetLazySingleton(instance: YOUR-INSTANCE) throws when the generic is omitted.

New version:
Allows to reset the lazy Singleton by only providing an instance.

@escamoteur escamoteur merged commit 8151a61 into fluttercommunity:master Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants