copyWith method

PaymentContext copyWith({
  1. AmountOfMoney? amountOfMoney,
  2. String? countryCode,
  3. bool? isRecurring,
  4. bool? forceBasicFlow,
  5. Locale? locale,
})

Implementation

PaymentContext copyWith(
    {AmountOfMoney? amountOfMoney,
    String? countryCode,
    bool? isRecurring,
    bool? forceBasicFlow,
    Locale? locale}) {
  return PaymentContext(amountOfMoney ?? this.amountOfMoney,
      countryCode ?? this.countryCode, isRecurring ?? this.isRecurring,
      forceBasicFlow: forceBasicFlow ?? this.forceBasicFlow,
      locale: locale ?? this.locale);
}