copyWith method

UTXOTransaction copyWith({
  1. int? block,
  2. dynamic fee,
  3. String? hash,
  4. int? timeMilli,
  5. dynamic amount,
  6. String? sender,
  7. String? recipient,
  8. dynamic token,
  9. TransactionTransferMethod? transferMethod,
  10. int? confirmations,
  11. List<ElectrumInput>? inputs,
  12. List<ElectrumOutput>? outputs,
  13. String? id,
  14. int? version,
  15. ConfirmationStatus? status,
})

Implementation

UTXOTransaction copyWith({
  int? block,
  Amount? fee,
  String? hash,
  int? timeMilli,
  Amount? amount,
  String? sender,
  String? recipient,
  CoinEntity? token,
  TransactionTransferMethod? transferMethod,
  int? confirmations,
  List<ElectrumInput>? inputs,
  List<ElectrumOutput>? outputs,
  String? id,
  int? version,
  ConfirmationStatus? status,
}) {
  return UTXOTransaction(
    block: block ?? this.block,
    fee: fee ?? this.fee,
    hash: hash ?? this.hash,
    timeMilli: timeMilli ?? this.timeMilli,
    amount: amount ?? this.amount,
    sender: sender ?? this.sender,
    recipient: recipient ?? this.recipient,
    token: token ?? this.token,
    transferMethod: transferMethod ?? this.transferMethod,
    confirmations: confirmations ?? this.confirmations,
    inputs: inputs ?? this.inputs,
    outputs: outputs ?? this.outputs,
    id: id ?? this.id,
    version: version ?? this.version,
    status: status ?? this.status,
  );
}