EMMessage.createVideoSendMessage constructor Null safety
- {required String username,
- required String filePath,
- String displayName = '',
- int duration = 0,
- String thumbnailLocalPath = '',
- double width = 0,
- double height = 0}
构造发送的视频消息
Implementation
EMMessage.createVideoSendMessage({
required String username,
required String filePath,
String displayName = '',
int duration = 0,
String thumbnailLocalPath = '',
double width = 0,
double height = 0,
}) : this.createSendMessage(
to: username,
body: EMVideoMessageBody(
localPath: filePath,
displayName: displayName,
duration: duration,
thumbnailLocalPath: thumbnailLocalPath,
width: width,
height: height,
));