copyWith method
Implementation
GlobalDefi copyWith({
double? defiMarketCap,
double? ethMarketCap,
double? defiToEthRatio,
double? tradingVolume24h,
double? defiDominance,
String? topCoinName,
double? topCoinDefiDominance,
}) {
return GlobalDefi(
defiMarketCap: defiMarketCap ?? this.defiMarketCap,
ethMarketCap: ethMarketCap ?? this.ethMarketCap,
defiToEthRatio: defiToEthRatio ?? this.defiToEthRatio,
tradingVolume24h: tradingVolume24h ?? this.tradingVolume24h,
defiDominance: defiDominance ?? this.defiDominance,
topCoinName: topCoinName ?? this.topCoinName,
topCoinDefiDominance: topCoinDefiDominance ?? this.topCoinDefiDominance,
);
}