copyWith method
Copy model with modified properties.
Properties:
publishable_key
: Stripe API publishable keyneed_country
: True, if the user country must be providedneed_postal_code
: True, if the user ZIP/postal code must be providedneed_cardholder_name
: True, if the cardholder name must be provided
Implementation
@override
PaymentProviderStripe copyWith({
String? publishableKey,
bool? needCountry,
bool? needPostalCode,
bool? needCardholderName,
}) =>
PaymentProviderStripe(
publishableKey: publishableKey ?? this.publishableKey,
needCountry: needCountry ?? this.needCountry,
needPostalCode: needPostalCode ?? this.needPostalCode,
needCardholderName: needCardholderName ?? this.needCardholderName,
);