TextMessage.fromPartial constructor
TextMessage.fromPartial({})
Creates a full text message from a partial one.
Implementation
factory TextMessage.fromPartial({
required User author,
int? createdAt,
required String id,
required PartialText partialText,
String? remoteId,
String? roomId,
bool? showStatus,
Status? status,
int? updatedAt,
}) =>
_TextMessage(
author: author,
createdAt: createdAt,
id: id,
metadata: partialText.metadata,
previewData: partialText.previewData,
remoteId: remoteId,
repliedMessage: partialText.repliedMessage,
roomId: roomId,
showStatus: showStatus,
status: status,
text: partialText.text,
type: MessageType.text,
updatedAt: updatedAt,
);