deleteAll method

  1. @override
Future<int> deleteAll(
  1. List<Id> ids
)
override

Delete a list of objects by their ids.

Returns the number of objects that have been deleted. Isar web always returns ids.length.

Implementation

@override
Future<int> deleteAll(List<Id> ids) {
  return _spanHelper.asyncWrapInSpan(
    'deleteAll',
    () {
      return _isarCollection.deleteAll(ids);
    },
    dbName: _dbName,
    collectionName: name,
  );
}