copyWith method
GlobalCoins
copyWith(
{ - int? activeCryptocurrencies,
- int? upcomingIcos,
- int? ongoingIcos,
- int? endedIcos,
- int? markets,
- Map<String, dynamic>? totalMarketCap,
- Map<String, dynamic>? totalVolume,
- Map<String, dynamic>? marketCapPercentage,
- double? marketCapChangePercentage24hUsd,
- int? updatedAt,
})
Implementation
GlobalCoins copyWith({
int? activeCryptocurrencies,
int? upcomingIcos,
int? ongoingIcos,
int? endedIcos,
int? markets,
Map<String,dynamic>? totalMarketCap,
Map<String,dynamic>? totalVolume,
Map<String,dynamic>? marketCapPercentage,
double? marketCapChangePercentage24hUsd,
int? updatedAt,
}) {
return GlobalCoins(
activeCryptocurrencies:
activeCryptocurrencies ?? this.activeCryptocurrencies,
upcomingIcos: upcomingIcos ?? this.upcomingIcos,
ongoingIcos: ongoingIcos ?? this.ongoingIcos,
endedIcos: endedIcos ?? this.endedIcos,
markets: markets ?? this.markets,
totalMarketCap: totalMarketCap ?? this.totalMarketCap,
totalVolume: totalVolume ?? this.totalVolume,
marketCapPercentage: marketCapPercentage ?? this.marketCapPercentage,
marketCapChangePercentage24hUsd: marketCapChangePercentage24hUsd ??
this.marketCapChangePercentage24hUsd,
updatedAt: updatedAt ?? this.updatedAt,
);
}