Transaction constructor

Transaction({
  1. int? type,
  2. int? timestamp,
  3. String? remark,
  4. List<int>? txData,
  5. Iterable<TransactionCoinFrom>? input,
  6. Iterable<TransactionCoinTo>? output,
  7. Signature? txSigs,
  8. int? hash,
})

Implementation

factory Transaction({
  $core.int? type,
  $core.int? timestamp,
  $core.String? remark,
  $core.List<$core.int>? txData,
  $core.Iterable<TransactionCoinFrom>? input,
  $core.Iterable<TransactionCoinTo>? output,
  Signature? txSigs,
  $core.int? hash,
}) {
  final $result = create();
  if (type != null) {
    $result.type = type;
  }
  if (timestamp != null) {
    $result.timestamp = timestamp;
  }
  if (remark != null) {
    $result.remark = remark;
  }
  if (txData != null) {
    $result.txData = txData;
  }
  if (input != null) {
    $result.input.addAll(input);
  }
  if (output != null) {
    $result.output.addAll(output);
  }
  if (txSigs != null) {
    $result.txSigs = txSigs;
  }
  if (hash != null) {
    $result.hash = hash;
  }
  return $result;
}