copyWith method
InitRequest
copyWith({
- int? amount,
- String? orderId,
- String? ip,
- String? description,
- Language? language,
- String? recurrent,
- String? customerKey,
- String? redirectDueDate,
- String? notificationUrl,
- String? successUrl,
- String? failUrl,
- PayType? payType,
- Receipt? receipt,
- Map<
String, String> ? data, - String? signToken,
override
Создает экземпляр с заданными параметрами
Implementation
@override
InitRequest copyWith({
int? amount,
String? orderId,
String? ip,
String? description,
Language? language,
String? recurrent,
String? customerKey,
String? redirectDueDate,
String? notificationUrl,
String? successUrl,
String? failUrl,
PayType? payType,
Receipt? receipt,
Map<String, String>? data,
String? signToken,
}) {
return InitRequest(
orderId: orderId ?? this.orderId,
amount: amount ?? this.amount,
ip: ip ?? this.ip,
description: description ?? this.description,
language: language ?? this.language,
recurrent: recurrent ?? this.recurrent,
customerKey: customerKey ?? this.customerKey,
redirectDueDate: redirectDueDate ?? this.redirectDueDate,
notificationUrl: notificationUrl ?? this.notificationUrl,
successUrl: successUrl ?? this.successUrl,
failUrl: failUrl ?? this.failUrl,
payType: payType ?? this.payType,
receipt: receipt ?? this.receipt,
data: data ?? this.data,
signToken: signToken ?? this.signToken,
);
}