copyWith method

PaymentResult copyWith({
  1. String? id,
  2. PaymentMethodStatus? status,
  3. String? clientKey,
  4. String? paymentMethod,
  5. String? errors,
  6. String? authenticateUrl,
  7. PaymentIntentNextAction? nextActions,
})

Implementation

PaymentResult copyWith({
  String? id,
  PaymentMethodStatus? status,
  String? clientKey,
  String? paymentMethod,
  String? errors,
  String? authenticateUrl,
  PaymentIntentNextAction? nextActions,
}) {
  return PaymentResult(
    id: id ?? this.id,
    status: status ?? this.status,
    clientKey: clientKey ?? this.clientKey,
    paymentMethod: paymentMethod ?? this.paymentMethod,
    errors: errors ?? this.errors,
    authenticateUrl: authenticateUrl ?? this.authenticateUrl,
    nextAction: nextActions ?? nextAction,
  );
}