delete<T extends RealmObject> method Null safety

void delete<T extends RealmObject>(
  1. T object
)

Deletes a RealmObject from this Realm.

Implementation

void delete<T extends RealmObject>(T object) {
  try {
    realmCore.deleteRealmObject(object);
  } catch (e) {
    throw RealmException("Error deleting object from databse. Error: $e");
  }
}