add method
Implementation
@override
Future<int?> add() async {
if (!initialized) throw ArgumentError(AbstractDao.C_MUST_INIT);
int? id;
// If lwt=WRITE && rwt=WRITE then we allow forcing an id (there may be gaps in user_store)
if (trDto.table_id == UserStoreMixin.C_TABLE_ID &&
localWardenType == WardenType.WRITE_SERVER &&
remoteWardenType == WardenType.WRITE_SERVER) {
id = trDto.id;
await insert();
} else {
id = await tableTransactionDao.add(
trDto.getFieldDataNoTr, localWardenType!);
}
return id;
}