createChatroomCustomMessage method Null safety
- {required String roomId,
- NIMMessageAttachment? attachment}
Implementation
static Future<NIMResult<NIMChatroomMessage>> createChatroomCustomMessage({
required String roomId,
NIMMessageAttachment? attachment,
}) async {
return NimCore.instance.chatroomService._createMessage({
'roomId': roomId,
'attachment': attachment?.toMap(),
'messageType': 'custom',
});
}