Delete method
void
Delete(
- dynamic id
Delete Function For Delete Any Item From Table
Delete Function will generate a Late Exception Because it's need to OpenBatch To called
batch.Delete(1);
Implementation
void Delete(dynamic id) {
var updateId = ("$id");
var updateIdText = ("'$id'");
batch.delete(table.tableName,
where:
"${table.primaryKeyName} = ${table.primrayKeyType == PrimaryKeyEnum.Text ? updateIdText : updateId}");
}