copyWith method

InboxItem copyWith({
  1. String? buttonAppUrl2,
  2. String? buttonAppUrl1,
  3. String? content,
  4. DateTime? lastUpdated,
  5. String? appUrl,
  6. String? itemId,
  7. String? heading,
  8. DateTime? dateCreated,
  9. String? imageUrl,
  10. String? buttonLabel1,
  11. List<String>? catalogIds,
  12. String? buttonLabel2,
  13. String? launchUrl,
  14. String? buttonLaunchUrl1,
  15. String? buttonLaunchUrl2,
  16. String? lookupType,
  17. String? templateId,
  18. int? status,
  19. 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,
    );