IoTransaction constructor

IoTransaction({
  1. Iterable<SpentTransactionOutput>? inputs,
  2. Iterable<UnspentTransactionOutput>? outputs,
  3. Datum_IoTransaction? datum,
  4. TransactionId? transactionId,
})

Implementation

factory IoTransaction({
  $core.Iterable<$17.SpentTransactionOutput>? inputs,
  $core.Iterable<$18.UnspentTransactionOutput>? outputs,
  $19.Datum_IoTransaction? datum,
  $7.TransactionId? transactionId,
}) {
  final _result = create();
  if (inputs != null) {
    _result.inputs.addAll(inputs);
  }
  if (outputs != null) {
    _result.outputs.addAll(outputs);
  }
  if (datum != null) {
    _result.datum = datum;
  }
  if (transactionId != null) {
    _result.transactionId = transactionId;
  }
  return _result;
}