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