delete method

  1. @override
Future? delete(
  1. Entity entity,
  2. AccessOption? option
)
override

Deletes the entity from database.

  • option - an option for deleting this entity. It is the option, if any. passed from access.delete(). It is application specific, and not used in most implementations.

Implementation

@override
Future? delete(Entity entity, AccessOption? option) {
  final String oid = entity.oid;
  _cache.remove(entity.otype, oid);
  _storage.remove(oid);
}