Clone provider? #2760
thanhdatvo
started this conversation in
Ideas
Clone provider?
#2760
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to clone a provider?
This is how I imagine it will work.
The reason for this question is before I create a provider as a class property, so I could use
ref.read(UserProviderGroup().fetchUserProvider)
Now, I could not do that with code generation. The only possibility is to create a provider first then assign a clone of it to the class property.
For example:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions