You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's consider the code navigation in IDE as well. Currently, in order to make IDE navigate to our own code for the state store, and not the generated one, we always use the generated store cast to the original (non-generated) type.
The author's example makes the _Counter private so that the generated Counter is the type to be used.
I'd prefer to have the ability to specify a non-private abstract class as a base type for state store generation. Something like this:
abstractclassCounterwithStore {
}
and its generated counterpart:
classCounterStoreextendsCounter {
}
This way, I'd be able to create a Counter using the CounterStore() constructor but expose it using the original Counter type and have proper code navigation in the IDE.
Hello, Thanks for your work.
Writing a store is too verbose. The Realm team generates the class this way. Is it possible to take inspiration from what they have done?
From
To
After the generator create this :
Here is the sample realm repository
https://github.com/realm/realm-dart/tree/main/example/bin
Thanks
The text was updated successfully, but these errors were encountered: