create method

  1. @override
  2. @mustCallSuper
FutureOr<void> create(
  1. EntityModel entity, {
  2. bool createOpLog = true,
  3. DataOperation dataOperation = DataOperation.create,
})
inherited

The create method creates a new entity.

Implementation

@override
@mustCallSuper
FutureOr<void> create(
  D entity, {
  bool createOpLog = true,
  DataOperation dataOperation = DataOperation.create,
}) async {
  if (createOpLog) await createOplogEntry(entity, dataOperation);
}