copyWith method

GlobalCoins copyWith({
  1. int? activeCryptocurrencies,
  2. int? upcomingIcos,
  3. int? ongoingIcos,
  4. int? endedIcos,
  5. int? markets,
  6. Map<String, dynamic>? totalMarketCap,
  7. Map<String, dynamic>? totalVolume,
  8. Map<String, dynamic>? marketCapPercentage,
  9. double? marketCapChangePercentage24hUsd,
  10. 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,
  );
}