createFaceMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFaceMessage({
  1. required int index,
  2. required String data,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFaceMessage({
  required int index,
  required String data,
}) async {
  Map<String, dynamic> param = {"index": index, "data": data};
  var resp = V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'createFaceMessage',
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("createFaceMessage", param, resp.toLogString());
  return resp;
}