TransactionReceipt constructor

TransactionReceipt({
  1. IoTransaction? transaction,
  2. ConfidenceFactor? confidenceFactor,
  3. BlockId? blockId,
  4. ChainDistance? depth,
})

Implementation

factory TransactionReceipt({
  $20.IoTransaction? transaction,
  ConfidenceFactor? confidenceFactor,
  $18.BlockId? blockId,
  ChainDistance? depth,
}) {
  final _result = create();
  if (transaction != null) {
    _result.transaction = transaction;
  }
  if (confidenceFactor != null) {
    _result.confidenceFactor = confidenceFactor;
  }
  if (blockId != null) {
    _result.blockId = blockId;
  }
  if (depth != null) {
    _result.depth = depth;
  }
  return _result;
}