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

Generator should not remove nullability from lists #518

Closed
nirinchev opened this issue Apr 28, 2022 · 1 comment
Closed

Generator should not remove nullability from lists #518

nirinchev opened this issue Apr 28, 2022 · 1 comment
Assignees

Comments

@nirinchev
Copy link
Member

When generating a model like

class _Foo {
    late List<int?> ints;
}

The generator succeeds but removes the nullability of the int? argument to my list:

class Foo extends _Foo{
  @override
  RealmList<int> get ints =>
      RealmObject.get<int>(this, 'ints') as RealmList<int>;
}
@dotjon0
Copy link

dotjon0 commented Jun 23, 2022

We second this.

@sync-by-unito sync-by-unito bot closed this as completed Sep 26, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 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

No branches or pull requests

3 participants