getByIndex method
Get a single object by the unique index indexName and key.
Returns null if the object does not exist.
If possible, you should use the generated type-safe methods instead.
Implementation
@override
Future<OBJ?> getByIndex(String indexName, IndexKey key) {
return _spanHelper.asyncWrapInSpan(
'getByIndex',
() {
return _isarCollection.getByIndex(indexName, key);
},
dbName: _dbName,
collectionName: name,
);
}