copyWith method

GlobalDefi copyWith({
  1. double? defiMarketCap,
  2. double? ethMarketCap,
  3. double? defiToEthRatio,
  4. double? tradingVolume24h,
  5. double? defiDominance,
  6. String? topCoinName,
  7. double? topCoinDefiDominance,
})

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,
	);
}