TransactWrite constructor
TransactWrite({
- Operation? conditionCheck,
- Operation? delete,
- Operation? put,
- UpdateOperation? update,
Implementation
TransactWrite({
this.conditionCheck,
this.delete,
this.put,
this.update,
}) {
final nulls = [conditionCheck, delete, put, update].where((e) => e == null);
if (nulls.length < 3) {
throw ArgumentError(
'Only one of the conditionCheck/delete/put/update fields can be set at the same time');
}
}