copyWith method

Exchange copyWith({
  1. String? id,
  2. String? name,
  3. int? yearEstablished,
  4. String? country,
  5. dynamic description,
  6. String? url,
  7. String? image,
  8. bool? hasTradingIncentive,
  9. int? trustScore,
  10. int? trustScoreRank,
  11. double? tradeVolume24hBtc,
  12. double? tradeVolume24hBtcNormalized,
  13. Map<String, dynamic> json = const {},
})

Implementation

Exchange copyWith({
  String? id,
  String? name,
  int? yearEstablished,
  String? country,
  dynamic description,
  String? url,
  String? image,
  bool? hasTradingIncentive,
  int? trustScore,
  int? trustScoreRank,
  double? tradeVolume24hBtc,
  double? tradeVolume24hBtcNormalized,
  Map<String,dynamic> json=const{}
}) {
  return Exchange(
    id: id ?? this.id,
    name: name ?? this.name,
    yearEstablished: yearEstablished ?? this.yearEstablished,
    country: country ?? this.country,
    description: description ?? this.description,
    url: url ?? this.url,
    image: image ?? this.image,
    hasTradingIncentive: hasTradingIncentive ?? this.hasTradingIncentive,
    trustScore: trustScore ?? this.trustScore,
    trustScoreRank: trustScoreRank ?? this.trustScoreRank,
    tradeVolume24hBtc: tradeVolume24hBtc ?? this.tradeVolume24hBtc,
    tradeVolume24hBtcNormalized:
        tradeVolume24hBtcNormalized ?? this.tradeVolume24hBtcNormalized,
    json: json
  );
}