realm-dart icon indicating copy to clipboard operation
realm-dart copied to clipboard

Generator should not remove nullability from lists

Open nirinchev opened this issue 3 years ago • 1 comments

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>;
}

nirinchev avatar Apr 28 '22 21:04 nirinchev

We second this.

dotjon0 avatar Jun 23 '22 18:06 dotjon0