createTextAtMessage method

  1. @override
Future<V2TimMsgCreateInfoResult?> createTextAtMessage({
  1. required String text,
  2. required List<String> atUserList,
})
override

Implementation

@override
Future<V2TimMsgCreateInfoResult?> createTextAtMessage(
    {required String text, required List<String> atUserList}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .createTextAtMessage(text: text, atUserList: atUserList);
  if (res.code == 0) {
    final messageResult = res.data;
    return messageResult;
  }
  _coreService.callOnCallback(TIMCallback(
      type: TIMCallbackType.API_ERROR,
      errorMsg: res.desc,
      errorCode: res.code));
  return null;
}