copyWith method

TransactionReceipt copyWith({
  1. ModifierId? id,
  2. List<TokenBox>? newBoxes,
  3. List<SignatureContainer>? signatures,
  4. PolyAmount? fee,
  5. int? timestamp,
  6. Uint8List? messageToSign,
  7. List<BoxId>? boxesToRemove,
  8. List<Sender>? from,
  9. List? to,
  10. PropositionType? propositionType,
  11. Latin1Data? data,
  12. bool? minting,
  13. bool? status,
  14. String? txType,
  15. ModifierId? blockId,
  16. BlockNum? blockNumber,
})

Implementation

TransactionReceipt copyWith(
    {ModifierId? id,
    List<TokenBox>? newBoxes,
    List<SignatureContainer>? signatures,
    PolyAmount? fee,
    int? timestamp,
    Uint8List? messageToSign,
    List<BoxId>? boxesToRemove,
    List<Sender>? from,
    List? to,
    PropositionType? propositionType,
    Latin1Data? data,
    bool? minting,
    bool? status,
    String? txType,
    ModifierId? blockId,
    BlockNum? blockNumber}) {
  return TransactionReceipt(
      id: id ?? this.id,
      newBoxes: newBoxes ?? this.newBoxes,
      signatures: signatures ?? this.signatures,
      fee: fee ?? this.fee,
      timestamp: timestamp ?? this.timestamp,
      messageToSign: messageToSign ?? this.messageToSign,
      boxesToRemove: boxesToRemove ?? this.boxesToRemove,
      from: from ?? this.from,
      to: to ?? this.to,
      propositionType: propositionType ?? this.propositionType,
      data: data ?? this.data,
      minting: minting ?? this.minting,
      status: status ?? this.status,
      txType: txType ?? this.txType,
      blockId: blockId ?? this.blockId,
      blockNumber: blockNumber ?? this.blockNumber);
}