copyWith method

TransactionPayload copyWith({
  1. double? fees,
  2. String? from,
  3. int? lamports,
  4. String? to,
  5. SolanaTransaction? transaction,
})

Implementation

TransactionPayload copyWith({
  double? fees,
  String? from,
  int? lamports,
  String? to,
  SolanaTransaction? transaction,
}) {
  return TransactionPayload(
    fees: fees ?? this.fees,
    from: from ?? this.from,
    lamports: lamports ?? this.lamports,
    to: to ?? this.to,
    transaction: transaction ?? this.transaction,
  );
}