copyWith method
SwapEvent
copyWith(
{ - String? amount0In,
- String? amount0Out,
- String? amount1In,
- String? amount1Out,
- int? eventIndex,
- String? maker,
- String? pairId,
- String? priceNative,
- Reserves? reserves,
- String? txnId,
- int? txnIndex,
})
Implementation
SwapEvent copyWith(
{String? amount0In,
String? amount0Out,
String? amount1In,
String? amount1Out,
int? eventIndex,
String? maker,
String? pairId,
String? priceNative,
Reserves? reserves,
String? txnId,
int? txnIndex}) {
return SwapEvent(
amount0In: amount0In ?? this.amount0In,
amount0Out: amount0Out ?? this.amount0Out,
amount1In: amount1In ?? this.amount1In,
amount1Out: amount1Out ?? this.amount1Out,
eventIndex: eventIndex ?? this.eventIndex,
maker: maker ?? this.maker,
pairId: pairId ?? this.pairId,
priceNative: priceNative ?? this.priceNative,
reserves: reserves ?? this.reserves,
txnId: txnId ?? this.txnId,
txnIndex: txnIndex ?? this.txnIndex);
}