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

Allow to extends from customClass

Open ngminhduong opened this issue 5 years ago • 1 comments

abstract class RealmDBModel extends RealmObject {
  @RealmProperty(primaryKey: true)
  int id;
}

class _Item {

  @RealmProperty()
  String name;

  @RealmProperty(defaultValue: '42')
  int price;
}

Need a way allow dart generate will extends RealmDBModel instead of RealmObject

ngminhduong avatar Apr 04 '21 03:04 ngminhduong

Hi, thanks for the suggestion. We will consider it for the next versions of the SDK.

blagoev avatar May 25 '21 13:05 blagoev