copyWith method

LiquidityEvent copyWith({
  1. String? amount0,
  2. String? amount1,
  3. int? eventIndex,
  4. String? maker,
  5. String? pairId,
  6. Reserves? reserves,
  7. String? txnId,
  8. int? txnIndex,
})

Implementation

LiquidityEvent copyWith(
    {String? amount0,
    String? amount1,
    int? eventIndex,
    String? maker,
    String? pairId,
    Reserves? reserves,
    String? txnId,
    int? txnIndex}) {
  return LiquidityEvent(
      amount0: amount0 ?? this.amount0,
      amount1: amount1 ?? this.amount1,
      eventIndex: eventIndex ?? this.eventIndex,
      maker: maker ?? this.maker,
      pairId: pairId ?? this.pairId,
      reserves: reserves ?? this.reserves,
      txnId: txnId ?? this.txnId,
      txnIndex: txnIndex ?? this.txnIndex);
}