copyWith method

BushaPayConfig copyWith({
  1. String? quoteAmount,
  2. String? quoteCurrency,
  3. String? targetCurrency,
  4. String? sourceCurrency,
  5. String? reference,
  6. String? metaName,
  7. String? metaEmail,
  8. String? metaPhone,
  9. List<PaymentMethod>? allowedPaymentMethods,
})

Creates a copy with the given fields replaced.

Implementation

BushaPayConfig copyWith({
  String? quoteAmount,
  String? quoteCurrency,
  String? targetCurrency,
  String? sourceCurrency,
  String? reference,
  String? metaName,
  String? metaEmail,
  String? metaPhone,
  List<PaymentMethod>? allowedPaymentMethods,
}) => BushaPayConfig(
  quoteAmount: quoteAmount ?? this.quoteAmount,
  quoteCurrency: quoteCurrency ?? this.quoteCurrency,
  targetCurrency: targetCurrency ?? this.targetCurrency,
  sourceCurrency: sourceCurrency ?? this.sourceCurrency,
  reference: reference ?? this.reference,
  metaName: metaName ?? this.metaName,
  metaEmail: metaEmail ?? this.metaEmail,
  metaPhone: metaPhone ?? this.metaPhone,
  allowedPaymentMethods: allowedPaymentMethods ?? this.allowedPaymentMethods,
);