createImageMessage method

  1. @override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage({
  1. required String imagePath,
  2. dynamic inputElement,
  3. String? imageName,
})
override

Implementation

@override
Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage({required String imagePath, dynamic inputElement, String? imageName}) async {
  Map<String, dynamic> param = {"imagePath": imagePath};
  var resp = V2TimValueCallback<V2TimMsgCreateInfoResult>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createImageMessage",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("createImageMessage", param, resp.toLogString());
  return resp;
}