sendTextAtMessage method

  1. @override
Future<V2TimValueCallback<V2TimMessage>> sendTextAtMessage({
  1. required String text,
  2. required List<String> atUserList,
  3. required String receiver,
  4. required String groupID,
  5. int priority = 0,
  6. bool onlineUserOnly = false,
  7. bool isExcludedFromUnreadCount = false,
  8. Map<String, dynamic>? offlinePushInfo,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMessage>> sendTextAtMessage({
  required String text,
  required List<String> atUserList,
  required String receiver,
  required String groupID,
  int priority = 0,
  bool onlineUserOnly = false,
  bool isExcludedFromUnreadCount = false,
  Map<String, dynamic>? offlinePushInfo,
}) async {
  Map<String, dynamic> param = {
    "text": text,
    "atUserList": atUserList,
    "receiver": receiver,
    "groupID": groupID,
    "priority": priority,
    "onlineUserOnly": onlineUserOnly,
    "isExcludedFromUnreadCount": isExcludedFromUnreadCount,
    "offlinePushInfo": offlinePushInfo,
  };
  var resp = V2TimValueCallback<V2TimMessage>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'sendTextAtMessage',
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("sendTextAtMessage", param, resp.toLogString());
  return resp;
}