copyWith method
Data
copyWith(
{ - String? channel,
- String? companyUid,
- String? connectionUid,
- String? contactUid,
- DateTime? createdAt,
- int? id,
- String? lastMessage,
- String? messageType,
- String? noOfUnseenMessages,
- String? status,
- String? uid,
- DateTime? updatedAt,
})
Implementation
Data copyWith({
String? channel,
String? companyUid,
String? connectionUid,
String? contactUid,
DateTime? createdAt,
int? id,
String? lastMessage,
String? messageType,
String? noOfUnseenMessages,
String? status,
String? uid,
DateTime? updatedAt,
}) {
return Data(
channel: channel ?? this.channel,
companyUid: companyUid ?? this.companyUid,
connectionUid: connectionUid ?? this.connectionUid,
contactUid: contactUid ?? this.contactUid,
createdAt: createdAt ?? this.createdAt,
id: id ?? this.id,
lastMessage: lastMessage ?? this.lastMessage,
messageType: messageType ?? this.messageType,
noOfUnseenMessages: noOfUnseenMessages ?? this.noOfUnseenMessages,
status: status ?? this.status,
uid: uid ?? this.uid,
updatedAt: updatedAt ?? this.updatedAt,
);
}