copyWith method
Transaction
copyWith({
- XCBAddress? from,
- XCBAddress? to,
- int? maxEnergy,
- XCBAmount? energyPrice,
- XCBAmount? value,
- Uint8List? data,
- int? nonce,
- XCBAmount? maxPriorityFeePerEnergy,
- XCBAmount? maxFeePerEnergy,
Implementation
Transaction copyWith({
XCBAddress? from,
XCBAddress? to,
int? maxEnergy,
XCBAmount? energyPrice,
XCBAmount? value,
Uint8List? data,
int? nonce,
XCBAmount? maxPriorityFeePerEnergy,
XCBAmount? maxFeePerEnergy,
}) {
return Transaction(
from: from ?? this.from,
to: to ?? this.to,
maxEnergy: maxEnergy ?? this.maxEnergy,
energyPrice: energyPrice ?? this.energyPrice,
value: value ?? this.value,
data: data ?? this.data,
nonce: nonce ?? this.nonce,
);
}