copyWith method
AppInboxMessage
copyWith(
{ - String? id,
- String? title,
- String? createdDate,
- bool? isNewMessage,
- String? content,
- String? imageUrl,
- String? linkUrl,
- String? category,
- 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,
);
}