ingest<T extends AsymmetricObject> method
void
ingest<T extends AsymmetricObject>(
- T object
Ingest an AsymmetricObject to the Realm.
Ingesting is a write only operation. The ingested objects synchronizes to the App Services backend and are deleted from the device. An AsymmetricObject can never be read from the Realm.
Implementation
void ingest<T extends AsymmetricObject>(T object) {
final metadata = _metadata.getByType(object.runtimeType);
final handle = _createObject(object, metadata, false);
final accessor = RealmCoreAccessor(metadata, _isInMigration);
object.manage(this, handle, accessor, false);
}