copyWith method
InboxItem
copyWith({
- String? buttonAppUrl2,
- String? buttonAppUrl1,
- String? content,
- DateTime? lastUpdated,
- String? appUrl,
- String? itemId,
- String? heading,
- DateTime? dateCreated,
- String? imageUrl,
- String? buttonLabel1,
- List<
String> ? catalogIds, - String? buttonLabel2,
- String? launchUrl,
- String? buttonLaunchUrl1,
- String? buttonLaunchUrl2,
- String? lookupType,
- String? templateId,
- int? status,
- String? trackingUrl,
Implementation
InboxItem copyWith({
String? buttonAppUrl2,
String? buttonAppUrl1,
String? content,
DateTime? lastUpdated,
String? appUrl,
String? itemId,
String? heading,
DateTime? dateCreated,
String? imageUrl,
String? buttonLabel1,
List<String>? catalogIds,
String? buttonLabel2,
String? launchUrl,
String? buttonLaunchUrl1,
String? buttonLaunchUrl2,
String? lookupType,
String? templateId,
int? status,
String? trackingUrl,
}) =>
InboxItem(
buttonAppUrl2: buttonAppUrl2 ?? this.buttonAppUrl2,
buttonAppUrl1: buttonAppUrl1 ?? this.buttonAppUrl1,
content: content ?? this.content,
lastUpdated: lastUpdated ?? this.lastUpdated,
appUrl: appUrl ?? this.appUrl,
itemId: itemId ?? this.itemId,
heading: heading ?? this.heading,
dateCreated: dateCreated ?? this.dateCreated,
imageUrl: imageUrl ?? this.imageUrl,
buttonLabel1: buttonLabel1 ?? this.buttonLabel1,
catalogIds: catalogIds ?? this.catalogIds,
buttonLabel2: buttonLabel2 ?? this.buttonLabel2,
launchUrl: launchUrl ?? this.launchUrl,
buttonLaunchUrl1: buttonLaunchUrl1 ?? this.buttonLaunchUrl1,
buttonLaunchUrl2: buttonLaunchUrl2 ?? this.buttonLaunchUrl2,
lookupType: lookupType ?? this.lookupType,
templateId: templateId ?? this.templateId,
status: status ?? this.status,
trackingUrl: trackingUrl ?? this.trackingUrl,
);