copyWith method
Implementation
ReplyMessage copyWith({
String? messageId,
String? message,
String? replyTo,
String? replyBy,
MessageType? messageType,
Duration? voiceMessageDuration,
bool forceNullValue = false,
}) {
return ReplyMessage(
messageId: messageId ?? this.messageId,
message: message ?? this.message,
replyTo: replyTo ?? this.replyTo,
replyBy: replyBy ?? this.replyBy,
messageType: messageType ?? this.messageType,
voiceMessageDuration: forceNullValue
? voiceMessageDuration
: voiceMessageDuration ?? this.voiceMessageDuration,
);
}