copyWith method
PoolInfoSchema
copyWith({
- String? address,
- String? apy1d,
- String? apy30d,
- String? apy7d,
- String? collectedToken0ProtocolFee,
- String? collectedToken1ProtocolFee,
- bool? deprecated,
- String? lpAccountAddress,
- String? lpBalance,
- String? lpFee,
- String? lpPriceUsd,
- String? lpTotalSupply,
- String? lpTotalSupplyUsd,
- String? lpWalletAddress,
- String? protocolFee,
- String? protocolFeeAddress,
- String? refFee,
- String? reserve0,
- String? reserve1,
- String? routerAddress,
- String? token0Address,
- String? token0Balance,
- String? token1Address,
- String? token1Balance,
Implementation
PoolInfoSchema copyWith(
{String? address,
String? apy1d,
String? apy30d,
String? apy7d,
String? collectedToken0ProtocolFee,
String? collectedToken1ProtocolFee,
bool? deprecated,
String? lpAccountAddress,
String? lpBalance,
String? lpFee,
String? lpPriceUsd,
String? lpTotalSupply,
String? lpTotalSupplyUsd,
String? lpWalletAddress,
String? protocolFee,
String? protocolFeeAddress,
String? refFee,
String? reserve0,
String? reserve1,
String? routerAddress,
String? token0Address,
String? token0Balance,
String? token1Address,
String? token1Balance}) {
return PoolInfoSchema(
address: address ?? this.address,
apy1d: apy1d ?? this.apy1d,
apy30d: apy30d ?? this.apy30d,
apy7d: apy7d ?? this.apy7d,
collectedToken0ProtocolFee:
collectedToken0ProtocolFee ?? this.collectedToken0ProtocolFee,
collectedToken1ProtocolFee:
collectedToken1ProtocolFee ?? this.collectedToken1ProtocolFee,
deprecated: deprecated ?? this.deprecated,
lpAccountAddress: lpAccountAddress ?? this.lpAccountAddress,
lpBalance: lpBalance ?? this.lpBalance,
lpFee: lpFee ?? this.lpFee,
lpPriceUsd: lpPriceUsd ?? this.lpPriceUsd,
lpTotalSupply: lpTotalSupply ?? this.lpTotalSupply,
lpTotalSupplyUsd: lpTotalSupplyUsd ?? this.lpTotalSupplyUsd,
lpWalletAddress: lpWalletAddress ?? this.lpWalletAddress,
protocolFee: protocolFee ?? this.protocolFee,
protocolFeeAddress: protocolFeeAddress ?? this.protocolFeeAddress,
refFee: refFee ?? this.refFee,
reserve0: reserve0 ?? this.reserve0,
reserve1: reserve1 ?? this.reserve1,
routerAddress: routerAddress ?? this.routerAddress,
token0Address: token0Address ?? this.token0Address,
token0Balance: token0Balance ?? this.token0Balance,
token1Address: token1Address ?? this.token1Address,
token1Balance: token1Balance ?? this.token1Balance);
}