createTextAtMessage method
创建文本消息,并且可以附带 @ 提醒功能
提醒消息仅适用于在群组中发送的消息
参数
userList 需要 @ 的用户列表,如果需要 @ALL,请传入 AT_ALL_TAG 常量字符串。 举个例子,假设该条文本消息希望@提醒 denny 和 lucy 两个用户,同时又希望@所有人,atUserList 传 ["denny","lucy",AT_ALL_TAG]
Implementation
Future<String> createTextAtMessage({
@required String text,
@required List<String> userList,
}) async {
return await _channel.invokeMethod(
"createTextAtMessage",
_buildParam(
{
"text": text,
"userList": userList,
},
),
);
}