EMMessage.createImageSendMessage constructor

EMMessage.createImageSendMessage({
  1. required String username,
  2. required String filePath,
  3. String displayName = '',
  4. String thumbnailLocalPath = '',
  5. bool sendOriginalImage = false,
  6. double width = 0,
  7. double height = 0,
})

构造发送的图片消息

Implementation

EMMessage.createImageSendMessage({
  required String username,
  required String filePath,
  String displayName = '',
  String thumbnailLocalPath = '',
  bool sendOriginalImage = false,
  double width = 0,
  double height = 0,
}) : this.createSendMessage(
          to: username,
          body: EMImageMessageBody(
            localPath: filePath,
            displayName: displayName,
            thumbnailLocalPath: thumbnailLocalPath,
            sendOriginalImage: sendOriginalImage,
            width: width,
            height: height,
          ));