createChatroomTextMessage static method

Future<NIMResult<NIMChatroomMessage>> createChatroomTextMessage(
  1. {required String roomId,
  2. required String text}
)

创建文本消息

Implementation

static Future<NIMResult<NIMChatroomMessage>> createChatroomTextMessage({
  required String roomId,
  required String text,
}) async {
  return NimCore.instance.chatroomService._createMessage({
    'roomId': roomId,
    'text': text,
    'messageType': 'text',
  });
}