copyWith method
Institution
copyWith({
- String? institutionId,
- String? name,
- List<
Products> ? products, - List<
CountryCode> ? countryCodes, - String? url,
- String? primaryColor,
- String? logo,
- List<
String> ? routingNumbers, - bool? oauth,
- InstitutionStatus? status,
- PaymentInitiationMetadata? paymentInitiationMetadata,
Implementation
Institution copyWith(
{String? institutionId,
String? name,
List<enums.Products>? products,
List<enums.CountryCode>? countryCodes,
String? url,
String? primaryColor,
String? logo,
List<String>? routingNumbers,
bool? oauth,
InstitutionStatus? status,
PaymentInitiationMetadata? paymentInitiationMetadata}) {
return Institution(
institutionId: institutionId ?? this.institutionId,
name: name ?? this.name,
products: products ?? this.products,
countryCodes: countryCodes ?? this.countryCodes,
url: url ?? this.url,
primaryColor: primaryColor ?? this.primaryColor,
logo: logo ?? this.logo,
routingNumbers: routingNumbers ?? this.routingNumbers,
oauth: oauth ?? this.oauth,
status: status ?? this.status,
paymentInitiationMetadata:
paymentInitiationMetadata ?? this.paymentInitiationMetadata);
}