sendChatroomMessage method Null safety

Future<NIMResult<NIMChatroomMessage>> sendChatroomMessage(
  1. NIMChatroomMessage message,
  2. [bool resend = false]
)

Send a message in the chatroom

Chatroom messages can be created through ChatroomMessageBuilder.

resend If the message is to be resent, set resend to true, otherwise, set it to false. Its default value is false.

Implementation

Future<NIMResult<NIMChatroomMessage>> sendChatroomMessage(
    NIMChatroomMessage message,
    [bool resend = false]) async {
  return _platform.sendChatroomMessage(message, resend);
}