TransactWrite constructor

TransactWrite({
  1. Operation? conditionCheck,
  2. Operation? delete,
  3. Operation? put,
  4. 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');
  }
}