EMMessage.createImageSendMessage constructor Null safety
- {required String username,
- required String filePath,
- String displayName = '',
- String thumbnailLocalPath = '',
- bool sendOriginalImage = false,
- double width = 0,
- 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,
));