parent property
RealmObjectBase?
get
parent
Retrieve the parent object of this embedded object.
Implementation
RealmObjectBase? get parent {
if (!isManaged) {
return null;
}
final parent = realmCore.getEmbeddedParent(this);
final (type, metadata) = realm.metadata.getByClassKey(parent.item2);
return realm.createObject(type, parent.item1, metadata);
}