create method

  1. @override
Future? create(
  1. Entity entity,
  2. Map data
)
override

Creates a new entity with the given OID into the database. *

    • data - the content of the entity to store.

Implementation

@override
Future? create(Entity entity, Map data) {
  final String oid = entity.oid;
  _cache.put(entity);
  _storage[oid] = json.encode(data);
}