copyWith method
Implementation
Item copyWith({
String? id,
String? name,
String? symbol,
int? marketCapRank,
String? thumb,
String? large,
int? score,
}) {
return Item(
id: id ?? this.id,
name: name ?? this.name,
symbol: symbol ?? this.symbol,
marketCapRank: marketCapRank ?? this.marketCapRank,
thumb: thumb ?? this.thumb,
large: large ?? this.large,
score: score ?? this.score,
);
}