delete method

  1. @override
Future<bool> delete(
  1. Id id
)
override

Delete a single object by its id.

Returns whether the object has been deleted. Isar web always returns true.

Implementation

@override
Future<bool> delete(Id id) {
  return _spanHelper.asyncWrapInSpan(
    'delete',
    () {
      return _isarCollection.delete(id);
    },
    dbName: _dbName,
    collectionName: name,
  );
}