Skip to content
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

Private fields don't work with initializers #1642

Closed
nielsenko opened this issue Apr 18, 2024 · 1 comment · Fixed by #1641
Closed

Private fields don't work with initializers #1642

nielsenko opened this issue Apr 18, 2024 · 1 comment · Fixed by #1641
Assignees

Comments

@nielsenko
Copy link
Contributor

@RealmModel()
class _WithPrivateFields {
  int _withDefault = 0;
}

will generate a constructor signature like:

  WithPrivateFields({
    int _withDefault = 0,
  })

which is not legal dart, as named parameters cannot be prefixed with _

Copy link

sync-by-unito bot commented Apr 18, 2024

➤ PM Bot commented:

Jira ticket: RDART-1010

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant