copyWithWrapped method
Item
copyWithWrapped({
- Wrapped<
String> ? itemId, - Wrapped<
String?> ? institutionId, - Wrapped<
String?> ? webhook, - Wrapped<
PlaidError?> ? error, - Wrapped<
List< ? availableProducts,Products> > - Wrapped<
List< ? billedProducts,Products> > - Wrapped<
List< ? products,Products> ?> - Wrapped<
List< ? consentedProducts,Products> ?> - Wrapped<
DateTime?> ? consentExpirationTime, - Wrapped<
ItemUpdateType> ? updateType,
Implementation
Item copyWithWrapped(
{Wrapped<String>? itemId,
Wrapped<String?>? institutionId,
Wrapped<String?>? webhook,
Wrapped<PlaidError?>? error,
Wrapped<List<enums.Products>>? availableProducts,
Wrapped<List<enums.Products>>? billedProducts,
Wrapped<List<enums.Products>?>? products,
Wrapped<List<enums.Products>?>? consentedProducts,
Wrapped<DateTime?>? consentExpirationTime,
Wrapped<enums.ItemUpdateType>? updateType}) {
return Item(
itemId: (itemId != null ? itemId.value : this.itemId),
institutionId:
(institutionId != null ? institutionId.value : this.institutionId),
webhook: (webhook != null ? webhook.value : this.webhook),
error: (error != null ? error.value : this.error),
availableProducts: (availableProducts != null
? availableProducts.value
: this.availableProducts),
billedProducts: (billedProducts != null
? billedProducts.value
: this.billedProducts),
products: (products != null ? products.value : this.products),
consentedProducts: (consentedProducts != null
? consentedProducts.value
: this.consentedProducts),
consentExpirationTime: (consentExpirationTime != null
? consentExpirationTime.value
: this.consentExpirationTime),
updateType: (updateType != null ? updateType.value : this.updateType));
}