copyWith method

PaymentIntentNextAction copyWith({
  1. String? type,
  2. Redirect? redirect,
})

recommend you follow the next action type from the documentation.

Implementation

PaymentIntentNextAction copyWith({
  String? type,
  Redirect? redirect,
}) {
  return PaymentIntentNextAction(
    type: type ?? this.type,
    redirect: redirect ?? this.redirect,
  );
}