copyWith method
ImMessage
copyWith(
{ - num? id,
- num? uid,
- bool? isSender,
- String? senderAvatar,
- String? receiverAvatar,
- dynamic messageContent,
- dynamic messageType,
- num? messageStatus,
- num? messageTime,
})
Implementation
ImMessage copyWith({
num? id,
num? uid,
bool? isSender,
String? senderAvatar,
String? receiverAvatar,
dynamic messageContent,
dynamic messageType,
num? messageStatus,
num? messageTime,
}) =>
ImMessage(
id: id ?? this.id,
uid: uid ?? this.uid,
isSender: isSender ?? this.isSender,
senderAvatar: senderAvatar ?? this.senderAvatar,
receiverAvatar: receiverAvatar ?? this.receiverAvatar,
messageContent: messageContent ?? this.messageContent,
messageType: messageType ?? this.messageType,
messageStatus: messageStatus ?? this.messageStatus,
messageTime: messageTime ?? this.messageTime,
);