copyWith method

  1. @override
FastResponseAd copyWith({
  1. String? language,
  2. String? title,
  3. String? description,
  4. FastResponseAdAsset? image,
  5. String? url,
  6. FastResponseAdMerchant? merchant,
  7. FastResponseAdRanking? ranking,
  8. FastResponseAdAsset? video,
  9. String? discount,
  10. String? button,
  11. String? price,
})
override

Creates a new FastResponseAd object with the specified properties replaced by the provided values.

Implementation

@override
FastResponseAd copyWith({
  String? language,
  String? title,
  String? description,
  FastResponseAdAsset? image,
  String? url,
  FastResponseAdMerchant? merchant,
  FastResponseAdRanking? ranking,
  FastResponseAdAsset? video,
  String? discount,
  String? button,
  String? price,
}) {
  return FastResponseAd(
    language: language ?? this.language,
    title: title ?? this.title,
    description: description ?? this.description,
    image: image ?? this.image,
    url: url ?? this.url,
    ranking: ranking ?? this.ranking,
    video: video ?? this.video,
    discount: discount ?? this.discount,
    merchant: merchant ?? this.merchant,
    button: button ?? this.button,
    price: price ?? this.price,
  );
}