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