copyWith method
MarketProduct
copyWith({
- int? id,
- String? reference,
- String? pictureUrl,
- int? categoryId,
- int? purchaseType,
- dynamic warrantyDuration,
- int? planDuration,
- int? workDuration,
- int? numberOfItems,
- String? label,
- String? languageCode,
- String? subtitleLabel,
- dynamic description,
- dynamic jsonDescription,
- dynamic countryCode,
- dynamic price,
- dynamic priceFormat,
- int? priceMonthly,
- String? priceMonthlyFormat,
- int? priceYearly,
- String? priceYearlyFormat,
- String? priceByAdIfMonthlyFormat,
- String? priceByAdIfYearlyFormat,
- double? pricePercentageDiscountIfYearly,
- String? currency,
- int? currentDiscountActive,
- dynamic currentDiscountInPercent,
- int? discountBetweenYearAndMonth,
- dynamic convertedPricing,
Implementation
MarketProduct copyWith({
int? id,
String? reference,
String? pictureUrl,
int? categoryId,
int? purchaseType,
dynamic warrantyDuration,
int? planDuration,
int? workDuration,
int? numberOfItems,
String? label,
String? languageCode,
String? subtitleLabel,
dynamic description,
dynamic jsonDescription,
dynamic countryCode,
dynamic price,
dynamic priceFormat,
int? priceMonthly,
String? priceMonthlyFormat,
int? priceYearly,
String? priceYearlyFormat,
String? priceByAdIfMonthlyFormat,
String? priceByAdIfYearlyFormat,
double? pricePercentageDiscountIfYearly,
String? currency,
int? currentDiscountActive,
dynamic currentDiscountInPercent,
int? discountBetweenYearAndMonth,
dynamic convertedPricing,
}) =>
MarketProduct(
id: id ?? this.id,
reference: reference ?? this.reference,
pictureUrl: pictureUrl ?? this.pictureUrl,
categoryId: categoryId ?? this.categoryId,
purchaseType: purchaseType ?? this.purchaseType,
warrantyDuration: warrantyDuration ?? this.warrantyDuration,
planDuration: planDuration ?? this.planDuration,
workDuration: workDuration ?? this.workDuration,
numberOfItems: numberOfItems ?? this.numberOfItems,
label: label ?? this.label,
languageCode: languageCode ?? this.languageCode,
subtitleLabel: subtitleLabel ?? this.subtitleLabel,
description: description ?? this.description,
jsonDescription: jsonDescription ?? this.jsonDescription,
countryCode: countryCode ?? this.countryCode,
price: price ?? this.price,
priceFormat: priceFormat ?? this.priceFormat,
priceMonthly: priceMonthly ?? this.priceMonthly,
priceMonthlyFormat: priceMonthlyFormat ?? this.priceMonthlyFormat,
priceYearly: priceYearly ?? this.priceYearly,
priceYearlyFormat: priceYearlyFormat ?? this.priceYearlyFormat,
priceByAdIfMonthlyFormat:
priceByAdIfMonthlyFormat ?? this.priceByAdIfMonthlyFormat,
priceByAdIfYearlyFormat:
priceByAdIfYearlyFormat ?? this.priceByAdIfYearlyFormat,
pricePercentageDiscountIfYearly: pricePercentageDiscountIfYearly ??
this.pricePercentageDiscountIfYearly,
currency: currency ?? this.currency,
currentDiscountActive:
currentDiscountActive ?? this.currentDiscountActive,
currentDiscountInPercent:
currentDiscountInPercent ?? this.currentDiscountInPercent,
discountBetweenYearAndMonth:
discountBetweenYearAndMonth ?? this.discountBetweenYearAndMonth,
convertedPricing: convertedPricing ?? this.convertedPricing,
);