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