copyWith method

SwapEvent copyWith({
  1. String? amount0In,
  2. String? amount0Out,
  3. String? amount1In,
  4. String? amount1Out,
  5. int? eventIndex,
  6. String? maker,
  7. String? pairId,
  8. String? priceNative,
  9. Reserves? reserves,
  10. String? txnId,
  11. 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);
}