copyWith method
Items
copyWith({
- String? name,
- int? quantity,
- int? amount,
- int? price,
- PaymentMethod? paymentMethod,
- PaymentObject? paymentObject,
- Tax? tax,
- AgentData? agentData,
- SupplierInfo? supplierInfo,
- String? ean13,
- String? shopCode,
- String? userData,
- int? excise,
- String? countryCode,
- String? declarationNumber,
- String? measurementUnit,
- String? markProcessingMode,
- MarkCode? markCode,
- MarkQuantity? markQuantity,
- List<
SectoralItemProps> ? sectoralItemProps,
override
Создает экземпляр с заданными параметрами
Implementation
@override
Items copyWith({
String? name,
int? quantity,
int? amount,
int? price,
PaymentMethod? paymentMethod,
PaymentObject? paymentObject,
Tax? tax,
AgentData? agentData,
SupplierInfo? supplierInfo,
String? ean13,
String? shopCode,
String? userData,
int? excise,
String? countryCode,
String? declarationNumber,
String? measurementUnit,
String? markProcessingMode,
MarkCode? markCode,
MarkQuantity? markQuantity,
List<SectoralItemProps>? sectoralItemProps,
}) {
return Items.all(
name: name ?? this.name,
quantity: quantity ?? this.quantity,
amount: amount ?? this.amount,
price: price ?? this.price,
paymentMethod: paymentMethod ?? this.paymentMethod,
paymentObject: paymentObject ?? this.paymentObject,
tax: tax ?? this.tax,
agentData: agentData ?? this.agentData,
supplierInfo: supplierInfo ?? this.supplierInfo,
ean13: ean13 ?? this.ean13,
shopCode: shopCode ?? this.shopCode,
userData: userData ?? this.userData,
excise: excise ?? this.excise,
countryCode: countryCode ?? this.countryCode,
declarationNumber: declarationNumber ?? this.declarationNumber,
measurementUnit: measurementUnit ?? this.measurementUnit,
markProcessingMode: markProcessingMode ?? this.markProcessingMode,
markCode: markCode ?? this.markCode,
markQuantity: markQuantity ?? this.markQuantity,
sectoralItemProps: sectoralItemProps ?? this.sectoralItemProps,
);
}