copyWith method
PaymentResult
copyWith({
- String? id,
- PaymentMethodStatus? status,
- String? clientKey,
- String? paymentMethod,
- String? errors,
- String? authenticateUrl,
- 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,
);
}