copyWith method

Item copyWith({
  1. String? id,
  2. String? name,
  3. String? symbol,
  4. int? marketCapRank,
  5. String? thumb,
  6. String? large,
  7. int? score,
})

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