updateId<K> method

void updateId<K>(
  1. T value,
  2. K id
)

Implementation

void updateId<K>(T value, K id) {
  batch.update(
      converter.toDb(value),
      batch.table.primaryKey.query.withValues([
        id.toString(),
      ]));
}