createImageMessage method

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage(
  1. Map<String, dynamic> params
)

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createImageMessage(Map<String, dynamic> params) async {
  try {
    return createMessage(type: "image", params: params);
  } catch (error) {
    throw const FormatException('fileName and fileContent cannot be empty.');
  }
}