We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When combining private fields with default values, realm_generator it will generate invalid code.
realm_generator
Try to run generator on the code snippet below
2.2.1
Atlas Device Sync
Flutter Application
Any
@RealmModel() class _Car { @MapTo("type") late int _type = 0; CustomType get type => CustomType.values[_type]; set type(final CustomType value) => _type = value.index; }
No response
The text was updated successfully, but these errors were encountered:
➤ PM Bot commented:
Jira ticket: RDART-1018
Sorry, something went wrong.
Related to #681
nielsenko
Successfully merging a pull request may close this issue.
What happened?
When combining private fields with default values,
realm_generator
it will generate invalid code.Repro steps
Try to run generator on the code snippet below
Version
2.2.1
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
Any
Code snippets
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: