getAllByIndex method

  1. @override
Future<List<OBJ?>> getAllByIndex(
  1. String indexName,
  2. List<IndexKey> keys
)
override

Get a list of objects by the unique index indexName and keys.

Returns null if the object does not exist.

If possible, you should use the generated type-safe methods instead.

Implementation

@override
Future<List<OBJ?>> getAllByIndex(String indexName, List<IndexKey> keys) {
  return _spanHelper.asyncWrapInSpan(
    'getAllByIndex',
    () {
      return _isarCollection.getAllByIndex(indexName, keys);
    },
    dbName: _dbName,
    collectionName: name,
  );
}