copyWith method

AppInboxMessage copyWith({
  1. String? id,
  2. String? title,
  3. String? createdDate,
  4. bool? isNewMessage,
  5. String? content,
  6. String? imageUrl,
  7. String? linkUrl,
  8. String? category,
  9. Map<String?, Object?>? customData,
})

Implementation

AppInboxMessage copyWith({
  String? id,
  String? title,
  String? createdDate,
  bool? isNewMessage,
  String? content,
  String? imageUrl,
  String? linkUrl,
  String? category,
  Map<String?, Object?>? customData,
}) {
  return AppInboxMessage(
    id: id ?? this.id,
    title: title ?? this.title,
    createdDate: createdDate ?? this.createdDate,
    isNewMessage: isNewMessage ?? this.isNewMessage,
    content: content ?? this.content,
    imageUrl: imageUrl ?? this.imageUrl,
    linkUrl: linkUrl ?? this.linkUrl,
    category: category ?? this.category,
    customData: customData,
  );
}