close method
void
close()
Closes the Realm.
All RealmObjects and Realm collections are invalidated and can not be used.
This method will not throw if called multiple times.
Implementation
void close() {
if (isClosed) {
return;
}
realmCore.closeRealm(this);
handle.release();
}