copyWith method

PaymentForm copyWith({
  1. int? id,
  2. Invoice? invoice,
  3. String? url,
  4. int? sellerBotUserId,
  5. int? paymentsProviderUserId,
  6. PaymentsProviderStripe? paymentsProvider,
  7. OrderInfo? savedOrderInfo,
  8. SavedCredentials? savedCredentials,
  9. bool? canSaveCredentials,
  10. bool? needPassword,
  11. dynamic extra,
  12. int? clientId,
})

Implementation

PaymentForm copyWith({
  int? id,
  Invoice? invoice,
  String? url,
  int? sellerBotUserId,
  int? paymentsProviderUserId,
  PaymentsProviderStripe? paymentsProvider,
  OrderInfo? savedOrderInfo,
  SavedCredentials? savedCredentials,
  bool? canSaveCredentials,
  bool? needPassword,
  dynamic extra,
  int? clientId,
}) => PaymentForm(
  id: id ?? this.id,
  invoice: invoice ?? this.invoice,
  url: url ?? this.url,
  sellerBotUserId: sellerBotUserId ?? this.sellerBotUserId,
  paymentsProviderUserId: paymentsProviderUserId ?? this.paymentsProviderUserId,
  paymentsProvider: paymentsProvider ?? this.paymentsProvider,
  savedOrderInfo: savedOrderInfo ?? this.savedOrderInfo,
  savedCredentials: savedCredentials ?? this.savedCredentials,
  canSaveCredentials: canSaveCredentials ?? this.canSaveCredentials,
  needPassword: needPassword ?? this.needPassword,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);