AddressTransaction constructor

AddressTransaction({
  1. ChainRef? chain,
  2. SingleAddress? address,
  3. UInt32Value? xpubIndex,
  4. String? txId,
  5. BlockInfo? block,
  6. bool? mempool,
  7. String? cursor,
  8. bool? removed,
  9. bool? failed,
  10. Iterable<Change>? changes,
  11. int? txIndexInBlock,
})

Implementation

factory AddressTransaction({
  $0.ChainRef? chain,
  $0.SingleAddress? address,
  $1.UInt32Value? xpubIndex,
  $core.String? txId,
  $0.BlockInfo? block,
  $core.bool? mempool,
  $core.String? cursor,
  $core.bool? removed,
  $core.bool? failed,
  $core.Iterable<Change>? changes,
  $core.int? txIndexInBlock,
}) {
  final result = create();
  if (chain != null) result.chain = chain;
  if (address != null) result.address = address;
  if (xpubIndex != null) result.xpubIndex = xpubIndex;
  if (txId != null) result.txId = txId;
  if (block != null) result.block = block;
  if (mempool != null) result.mempool = mempool;
  if (cursor != null) result.cursor = cursor;
  if (removed != null) result.removed = removed;
  if (failed != null) result.failed = failed;
  if (changes != null) result.changes.addAll(changes);
  if (txIndexInBlock != null) result.txIndexInBlock = txIndexInBlock;
  return result;
}