copyWith method
MessageModel
copyWith({
- Message? message,
- List<
MessageReaction> ? reactions, - Message? quoteMessage,
- ChatThread? thread,
- MessagePinInfo? pinInfo,
Implementation
MessageModel copyWith({
Message? message,
List<MessageReaction>? reactions,
Message? quoteMessage,
ChatThread? thread,
MessagePinInfo? pinInfo,
}) {
return MessageModel(
modelId: id,
message: message ?? this.message,
reactions: reactions ?? this.reactions,
quoteMessage: quoteMessage ?? this.quoteMessage,
thread: thread ?? this.thread,
pinInfo: pinInfo ?? this.pinInfo,
);
}