create method
FutureOr<void>
create(
- StockReconciliationModel entity, {
- bool createOpLog = true,
- DataOperation dataOperation = DataOperation.create,
override
The create
method creates a new entity.
Implementation
@override
FutureOr<void> create(
StockReconciliationModel entity, {
bool createOpLog = true,
DataOperation dataOperation = DataOperation.create,
}) async {
return retryLocalCallOperation(() async {
final stockReconCompanion = entity.companion;
await sql.batch((batch) {
batch.insert(sql.stockReconciliation, stockReconCompanion);
});
await super.create(entity);
});
}