RSIMMessage.text constructor
RSIMMessage.text({})
Implementation
factory RSIMMessage.text({
required int conversationType,
required String targetId,
String channelId = '',
required String text,
}) {
return RSIMMessage(
conversationType: conversationType,
targetId: targetId,
channelId: channelId,
messageId: 0,
direction: RSIMMessageDirection.send,
senderId: '',
sentStatus: RSIMSentStatus.sending,
receivedTime: 0,
sentTime: 0,
objectName: textObjectName,
content: jsonEncode(<String, String>{'content': text}),
uid: '',
extra: '',
isOffline: false,
expiry: 0,
canIncludeExpansion: false,
expansion: const <String, String>{},
);
}