copyWith method
GetAllConversationsData
copyWith({
- int? id,
- String? uid,
- String? companyUid,
- String? contactUid,
- String? channel,
- String? lastMessage,
- String? messageType,
- String? noOfUnseenMessages,
- String? connectionUid,
- DateTime? createdAt,
- DateTime? updatedAt,
- Contact? contact,
- String? status,
- Facebook? facebookConnection,
- Twitter? twitterConnection,
- Instagram? instagramConnection,
- String? sentMessage,
Implementation
GetAllConversationsData copyWith({
int? id,
String? uid,
String? companyUid,
String? contactUid,
String? channel,
String? lastMessage,
String? messageType,
String? noOfUnseenMessages,
String? connectionUid,
DateTime? createdAt,
DateTime? updatedAt,
Contact? contact,
String? status,
Facebook? facebookConnection,
Twitter? twitterConnection,
Instagram? instagramConnection,
String? sentMessage,
}) {
return GetAllConversationsData(
id: id ?? this.id,
uid: uid ?? this.uid,
companyUid: companyUid ?? this.companyUid,
contactUid: contactUid ?? this.contactUid,
channel: channel ?? this.channel,
lastMessage: lastMessage ?? this.lastMessage,
messageType: messageType ?? this.messageType,
noOfUnseenMessages: noOfUnseenMessages ?? this.noOfUnseenMessages,
connectionUid: connectionUid ?? this.connectionUid,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
contact: contact ?? this.contact,
status: status ?? this.status,
facebookConnection: facebookConnection ?? this.facebookConnection,
twitterConnection: twitterConnection ?? this.twitterConnection,
instagramConnection: instagramConnection ?? this.instagramConnection,
sentMessage: sentMessage ?? this.sentMessage,
);
}