createTextAtMessage static method
Object
createTextAtMessage(
{ - required String groupID,
- required String text,
- required List atList,
- String cloudCustomData = '',
- bool needReadReceipt = false,
- int priority = 0,
})
Implementation
static Object createTextAtMessage(
{required String groupID,
required String text,
required List<dynamic> atList,
String cloudCustomData = '',
bool needReadReceipt = false,
int priority = 0}) {
final textParams = {
"to": groupID,
"conversationType": "GROUP",
"cloudCustomData": cloudCustomData,
"needReadReceipt": needReadReceipt,
"priority": MessagePriorityWeb.convertMsgPriorityToWeb(priority),
"payload": mapToJSObj({"text": text, "atUserList": atList}),
};
return mapToJSObj(textParams);
}