createChatroomFileMessage method Null safety
- {required String roomId,
- required String filePath,
- required String displayName,
- NIMNosScene nosScene = NIMNosScenes.defaultIm}
Create a file message.
Implementation
static Future<NIMResult<NIMChatroomMessage>> createChatroomFileMessage({
required String roomId,
required String filePath,
required String displayName,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
}) async {
return NimCore.instance.chatroomService._createMessage({
'roomId': roomId,
'filePath': filePath,
'displayName': displayName,
'nosScene': nosScene,
'messageType': 'file',
});
}