createTargetedGroupMessage method Null safety
If you need to send a message to the specified group member list in the group, you can create a targeted group message, and the targeted group message can only be received by the specified group members.
- caution:
- The raw message object does not support group @messages.
- Community (Community) and live group (AVChatRoom) do not support sending targeted group messages.
- Targeted group messages do not count towards the unread count of group conversations by default.
- web does not currently support this message
Implementation
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
createTargetedGroupMessage(
{required String id, required List<String> receiverList}) async {
return ImFlutterPlatform.instance
.createTargetedGroupMessage(id: id, receiverList: receiverList);
}