copyWith method

Institution copyWith({
  1. String? institutionId,
  2. String? name,
  3. List<Products>? products,
  4. List<CountryCode>? countryCodes,
  5. String? url,
  6. String? primaryColor,
  7. List<String>? routingNumbers,
  8. bool? oauth,
  9. InstitutionStatus? status,
  10. 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);
}