operator [] method
Returns the element of type T
at the specified index
.
Implementation
T operator [](int index) {
if (this is RealmResults<RealmObjectBase>) {
final handle = realmCore.resultsGetObjectAt(this, index);
final accessor = RealmCoreAccessor(metadata, realm.isInMigration);
return RealmObjectInternal.create(T, realm, handle, accessor) as T;
} else {
return realmCore.resultsGetElementAt(this, index) as T;
}
}